• InsertAtCursor function

    • This topic has 3 replies, 2 voices, and was last updated 14 years ago.
    Author
    Topic
    #476139

    Allen Browne created a VBA Function namedInsertAtCursor(). By pressing a key combination it will insert text at the cursor position on a form. Does anyone know of a simple database that uses this function? I would like to view the coding and try to figure out how to incorporate this function into a database. I am having difficulty with Arguments, Compile Errors, etc.

    Viewing 1 reply thread
    Author
    Replies
    • #1276458

      I have had a go at this and attach an example.

      • #1276476

        Thank you for your help. Come to find out that the Function works as advertised. Errors arise when the operator (me) introduces them – improperly naming modules, etc. etc. That is a very nifty function and accomplishes what I want.

        Ron

    • #1276485

      Glad you got it working.

      I had the same problem initially. I called the mdb file InsertAtCursor which meant that the VBA Project was also called InsertAtCursor.
      That meant I got a strange message when I tried to run the code. Changing the Project Name fixed it.

    Viewing 1 reply thread
    Reply To: InsertAtCursor function

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: