launching word in an application

J

juanita

I need to launch word to view a scanned document with a
fairly long UNC address(25 C plus the filename of up to
60). Using the macro function RunApp stops when it
encounters the first space in the UNC or the filename. Is
there a solution to this?

Sample string:
C:\program files\Microsoft Office\Office\winword.exe
\\corpserver\sales\final documents\office space
document.doc

errors occur after the word final and again after the word
office in the filename.
 
J

Jim/Chris

Try inserting double quotes

"C:\program files\Microsoft Office\Office\winword.exe"
"\\corpserver\sales\final documents\office space
document.doc"
 
I

Irish1957

I have had this difficulty before with word documents in Access 97 an
it comes down to spaces in the path names. Try using _ or somethin
else and elimate the spaces in the path and document nam
 
K

Ken Snell

Try using an expression:

="C:\program files\Microsoft Office\Office\winword.exe
\\corpserver\sales\final documents\office space document.doc"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top