maxmangion
AWF VIP
- Local time
- Today, 15:37
- Joined
- Feb 26, 2003
- Messages
- 2,805
I have a command button on a form, and on its onClick event i have placed the following statement in order to open a specific word document:
This works fine, however I noticed that if the path for the specific document contains a space, it does not open up successfully but i get a msgbox saying "the document name or path are not valid"
Any suggestions please ?
Thank You
Code:
Call Shell("C:\Program Files\Microsoft Office\Office 10\Winword.exe C:\Temp\Test.doc", vbMaximizedFocus)
This works fine, however I noticed that if the path for the specific document contains a space, it does not open up successfully but i get a msgbox saying "the document name or path are not valid"
Any suggestions please ?
Thank You