Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Lines

Status
Not open for further replies.

sarge97

Technical User
Dec 15, 2003
16
US
I'm trying to build a macro that is attached to a command button on a form that will open a specific word document. When using the "RunApp" macro it ask's for a command line to include the full path. Any ideas what command line I would use or a reference point I can go to for research.


Thanks
 
The command would be something like:
"C:\Program Files\Microsoft Office\Office\WinWord.exe" C:\YourDoc.Doc

You could also use code
Dim var
var = Shell("winword C:\YourDoc.Doc", vbMaximizedFocus)


Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top