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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating Word within VB6 IPF

Status
Not open for further replies.

softwareguy

Programmer
Feb 21, 2002
14
0
0
US
Anyone have any idea why caling the following line of code would cause an IPF?

Set oWordActiveDoc = oWord.Documents.Add(Template:= _
sFile, NewTemplate _
:=False)

sfile is set to path + template name
oWordActiveDoc is dimmed as Word.Document

This code works on some boxes & not on others? 95 & 98 boxs with 64 & 128MB both get same error. Can find very little help on troubleshooting IPF's. Thanks.
 
Figured it out. Make sure and check those references. Word9 (2K)library is not backwards compatible with Word8 (97). But Word8 works with Word9 (and XP too if anyone cares!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top