So, if I understand well, this means that if you want to work on an existing Word (or Excel) document or you want to save a new one, you can't target a .doc or .xls file.Originally Posted by RobDog888
On the contrary, if you create a document on the fly, without saving it, the (pseudo)code below still works.
VB Code:
Dim WApp As Object Dim WDoc As Object Set WApp = CreateObject("Word.Application") Set WDoc = WApp.Documents.Add 'YOUR CODE GOES HERE WApp.Visible = True
Please correct me if I am mistaken.





Reply With Quote