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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make keyboard ENTER in VBA ? 3

Status
Not open for further replies.

modzho

Technical User
Sep 18, 2003
3
LV
In my macro there is a soft Message Box what always appears and as my function repeats I need to push ENTER on my keyboard each time to continue the macro. It is not microsoft programm and there is no way to turn off this dialog box.
anybody have idea how to say keyboard enter in VBA macros ?

thanks.

 
You can use the sendkeys method if the msgbox is being called by another programme

The syntax for Enter is: {ENTER}

Rgds, John
 
Application.SendKeys("{ENTER}")
or
Application.SendKeys("{RETURN}")
or
Application.SendKeys("~")

depending on which kinda "enter" you do

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Thank you very much !!!
Its works !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top