I am writing a macro that copies some data from an excel sheet and pastes it into a browser text box.
I have everything figured out, and the code seems to working. Except that at some parts the commands are running so fast that they are not being executed in the proper order.
For example in the code below:
As you can see the macro switches to the explorer window, and then a Sendkey {TAB} command is used to move the cursor to the first textbox. However at times the sendkey command is executed so fast that the TAB is being applied in the excel window. I'm not sure if I am explaining this correctly, but that's what I observe.Please Login or Register to view this content.
I know there is a Sleep command to implement a wait time before the next command, but I don't know how to work that. Can someone please help me out here.
Thanks.
Bookmarks