Compile Error

R

richardb

I posted this question on the Automation Board but did not get a reply so am
trying here. The first line of a function (that will open a Word file) is:
Dim wrd As Word.Application

However, I get the error "User-defined type not defined". I am connected to
the DAO and Office 10 libraries.

Does anyone have a suggestion.
 
G

George Nicholson

Add a reference to the Microsoft Word x.x Object Library.
Reference to the Office object library only allows you access to toolbars,
Office Assistants, etc. The Office apps each have their own object
libraries.
 
R

richardb

Not sure if it is better etiquette to send a one-word "thank you" or better
not to clutter the other guy's mailbox with same. However, thanks, that did
it.
 

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