Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Text to Clipboard with Enter Keystroke

Status
Not open for further replies.

farm5951

Technical User
Oct 27, 2010
2
0
0
US
In Access 2007, I have a button that when pressed copies the contents of a textbox using DoCmd.RunCommand accmdCopy onto the clipboard, which I then next go to a website and paste the text into a textbox and then press the Enter key.

Does anyone know how to add an 'Enter' keystroke to the end of the copy? So after I press Control + V, the text is pasted into the textbox on the website and an enter is processed? I want to eliminate the need of pressing enter.

Thanks for any help!
 
Sorry, that isn't something you can do like that. You might be able to use SendKeys to do the enter but I don't see how you would make it do it unless you made your own hot key combination using AutoKeys and assigned a macro/function to do it. Is it that difficult to press the enter button yourself after a Ctrl+V?

Bob Larson
Free Access Tutorials and Samples:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top