Can't run Word Application using shell in VB6.5
Posted on 2014-02-02
Running Vista Home Premium and Access 2003
I have Microsoft Office Word 2007 on my desktop and it runs successfully. Using the search function in my OS I can't find the Microsoft Word executable for path in the shell function. I have tried using the shortcut from my desktop without success. Am I missing something about using the shell function to open up the application? I've tried the following Code without success:
Path = "C:\Program Files\Microsoft Office\Office\winword.exe"
( a guess at where .exe file might be)
Path = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Word 2007"
(from my shortcut property)
Test = Shell (Path, vbNormalFocus)