Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Apr 2002
    Location
    Onekama, Michigan, USA
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    InsertAtCursor function

    Allen Browne created a VBA Function named InsertAtCursor(). 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.
    Last edited by johnhutchison; 2011-04-19 at 19:20.

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts
    I have had a go at this and attach an example.
    Attached Files Attached Files
    Regards
    John



  3. #3
    Star Lounger
    Join Date
    Apr 2002
    Location
    Onekama, Michigan, USA
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    InsertAtCursor

    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

  4. #4
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts
    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.
    Regards
    John



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •