I'm trying to open MS Word with a file My code looks something like this.
This works but I need the opening file ("c:\conversion.doc" to be a variable
Sub WordTest()
Call Shell("c:\Program Files\Microsoft Office\Office\winword.exe c:\conversion.doc", 1)
End Sub
I'm looking for a working verision of this:
Sub WordTest()
Dim test As String
test = "c:\conversion.doc"
Call Shell("c:\Program Files\Microsoft Office\Office\winword.exe test", 1)
End Sub
The idea is to open an RTF file and export it as text and close Word. I can then open it in excel.
If anyone has any other ideas or a fix for this problem, I would appreciate it.
This works but I need the opening file ("c:\conversion.doc" to be a variable
Sub WordTest()
Call Shell("c:\Program Files\Microsoft Office\Office\winword.exe c:\conversion.doc", 1)
End Sub
I'm looking for a working verision of this:
Sub WordTest()
Dim test As String
test = "c:\conversion.doc"
Call Shell("c:\Program Files\Microsoft Office\Office\winword.exe test", 1)
End Sub
The idea is to open an RTF file and export it as text and close Word. I can then open it in excel.
If anyone has any other ideas or a fix for this problem, I would appreciate it.