SendKeys doesn't work for me

K

Kalivoda

Hello and thanks in advance for any hint.

On Windows 2000 Pro (SP4), Word 2000, VB 6.0 Runtime SP5 installed, I cannot
obtain any input from the SendKeys statement in my Word's macros. Somewhat
goes to the Word and e.g. smothers the message from the StatusBar statement,
but no chars appear in the edited text and no control signs function.

And in the Visual Basic 6.0 Professional (SP6), the same happens on my PC -
no output from my VB code. I vaguely remember, how well it had worked on
Windows 98. No chance on Windows 2000?

Thanks, Jan
 
J

Jezebel

SendKeys is always a challenge because you have so little control over where
the keystrokes go. But if you're working only with Word and VB, it's
unnecessary anyway because you can call, directly, the methods of the
objects involved. Sendkeys is always the absolute last resort, to be avoided
at almost any cost.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top