launching word in an application

  • Thread starter Thread starter juanita
  • Start date Start date
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.
 
Try inserting double quotes

"C:\program files\Microsoft Office\Office\winword.exe"
"\\corpserver\sales\final documents\office space
document.doc"
 
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
 
Try using an expression:

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