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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top