Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

4198 Command failed when opening Word from VB COM

Status
Not open for further replies.

ksaben

Programmer
Apr 12, 2001
4
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top