I've written a VB exe which successfully inserts text to a Word Document footer. However, when I moved the same code to a COM object it's producing a 4198, Command Failed error on the line
W.Documents.Open "C:\VBTest.doc"
(W was dim'd as a Word.Application)
I'm new to VB outside of ASP, but from what I’ve found in my searches, this should be possible from within COM, and I don’t *think* that it's a permissions error since VB's usually good about specifying that error.
Any help would be greatly appreciated.
Kristen
W.Documents.Open "C:\VBTest.doc"
(W was dim'd as a Word.Application)
I'm new to VB outside of ASP, but from what I’ve found in my searches, this should be possible from within COM, and I don’t *think* that it's a permissions error since VB's usually good about specifying that error.
Any help would be greatly appreciated.
Kristen