How can I have Excel open a file? For ex, a Word document called "test.doc"? I have the following code to open the Word application successfully, but I basically just want to open the file.
Thank you!
On Error Resume Next
Program = "WINWORD.exe"
TaskId = Shell(Program, 1)
If Err <> 0 Then
MsgBox "Cannot start " & Program, vbCritical, "Error"
End If
Thank you!
On Error Resume Next
Program = "WINWORD.exe"
TaskId = Shell(Program, 1)
If Err <> 0 Then
MsgBox "Cannot start " & Program, vbCritical, "Error"
End If