Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Timed Event

Posted on 2003-02-24
Medium Priority
Last Modified: 2010-04-07
i have a app that opens a word document

i want to sendkeys to it but i need to send them afer 10 seconds

how would i do that
Question by:Marcusw
LVL 11

Accepted Solution

Steiner earned 200 total points
ID: 8008588
Put a timer on your form, interval 10000.
Start the timer right after opening the document. In the Timer-event stop the timer and send your keys.


Expert Comment

ID: 8009140
As Steiner says, stop the timer once you're ready to send your keys.  To stop the timer, use:

Me.TimerInterval = 0

in your form code BEFORE you do the rest of your process.  Otherwise, it may try to start the process again.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question