PDA

View Full Version : VBA question on opening programs (WXP-Pro)



marshallgrads
11-29-2005, 02:51 AM
Hey gang,
We use a terminal emulator here at our workplace that has visual basic for applications installed. I want to map one of my "F" keys to open up Microsoft Outlook, wait 5 seconds, and then open up a specific document. Can someone show me the code to accomplish this task?

marshallgrads
11-29-2005, 03:10 AM
I don't need the code to map the key, our emulator has a nice little feature for that. I just need the code to open Outlook, and then open the folder that contains the document.

Thanks

homeflash
11-29-2005, 03:29 PM
thought of using shell command?

*** Sometimes Helping is a way of Learning! ***

marshallgrads
11-29-2005, 11:19 PM
Being a newbie, I don't know the shell commands. This is the help that I would be looking for.

Brf
11-30-2005, 09:44 AM
Or just create an Outlook object and use the methods on that.

homeflash
11-30-2005, 12:24 PM
http://www.vb-helper.com/howto_shell.html

or you can search from google, lots of examples there.

*** Sometimes Helping is a way of Learning! ***