Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

SendKeys doesn't work for me

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kalivoda - 22 Feb 2007 19:45 GMT
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
Jezebel - 22 Feb 2007 21:17 GMT
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.

> Hello and thanks in advance for any hint.
>
[quoted text clipped - 11 lines]
>
> Thanks, Jan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.