Problem creating table in Word

D

Drew

I'm trying to automate Word from a VB dll. This statment works when used in
a VB exe project but throws a "Type Mismatch" exception from the dll:

Set tabl = WordDoc.Tables.Add(WordDoc.Bookmarks("\endofdoc").Range, 8, 5,
wdWord9TableBehavior, wdAutoFitWindow)

Any ideas?

Thanks,
Drew
 
D

Drew

I should have added that the table is actually created but I still receive
the "Type Mismatch"
 
Top