|
-
October 4th, 2001, 09:29 PM
#1
SHIFT KEY (A real Doozie!)
Here we go.
I've got a program that opens MSWord files - no big deal right? Right. It uses the simple:
Set objWordApp = New Word.Application
objwordapp.document.open
code. Well, some of these documents that I open programmatically have AutoOpen macros. This is no good. I want a way to open these documents programmatically without triggering their auto open event. I haven't found anything simple yet. I have however thought about somehow tricking the computer into thinking that the shift key is depressed. Because as we all know, An auto open macro can not run when the shift key is depressed while opening a word document. So my question is... Does anyone know how I can trick the computer into thinking the shift key is locked for a given period? Or... Does anyone have any suggestions as to how I can open a word document programmatically without triggering its autoopen macros? Please HELP!
Thanks,
Bernie
If you can't code it, eat it.
-
October 4th, 2001, 10:56 PM
#2
Re: SHIFT KEY (A real Doozie!)
goto http://www.mcp.com/info they have a vb project called keypress that night help you out.
midnightservice
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|