From within an Outlook VBAProject I need to Open a Word Document. The following code is fine;
strInvoice = "C:\Invoice1.doc"
RetVal = Shell("C:\Program Files\Microsoft Office\Office12\winword.exe" & strInvoice, 1)
But if;
strInvoice = "C:\Documents and Settings\Peter R Hawkes\Invoice1.doc"
Then Word opens but message states cannot find c:\documents.doc
There has to be an easy answer but what is it!! I can see it is the spaces in the path but these cannot be changed?
Peter H