Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
sendkeys(keys,wait) how do I use wait
How do I use the "Wait" when using Application.SendKeys
Example - Application.SendKeys("123456789",wait) I need to have Excel wait for the keys to be processed before returning control to the macro -- MM |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
sendkeys(keys,wait) how do I use wait
Wait is not reliable. I use:
Sub PutValueIn() Range("B2").Select Application.SendKeys "abcd" Application.SendKeys "{ENTER}" DoEvents ' more stuff End Sub the DoEvents gives focus to the worksheet to handle the "keystrokes" For an example of using SendKeys to communicate with another app: http://msdn.microsoft.com/en-us/library/aa266281.aspx -- Gary''s Student - gsnu200832 "MM" wrote: How do I use the "Wait" when using Application.SendKeys Example - Application.SendKeys("123456789",wait) I need to have Excel wait for the keys to be processed before returning control to the macro -- MM |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Wait function in Excel 2000 Macro | Excel Discussion (Misc queries) | |||
Should I Wait? | Excel Discussion (Misc queries) | |||
Processing...Please Wait Message Box | Excel Discussion (Misc queries) | |||
When Excel wait for OLE action allow cancel so not have to end pr | Excel Discussion (Misc queries) | |||
Wait for user to change data after msgbox ???? | Excel Discussion (Misc queries) |