References

T

Terry

I have dual loaded Office installations, Office 97 and 2003. The install of
Office 2003 removed the reference to MSWORD8.olb and I have to manually keep
adding it to ensure my code will run on machines that only have Office 97.

Is there a way that I can permanently add this reference on my development
machine?

Regards
 
D

Douglas J. Steele

Don't bother adding a reference. Instead, use Late Binding.

Instead of

Dim appWord As Word.Application

Set appWord = New Word.Application

you'd use:

Dim appWord As Object

Set appWord = CreateObject("Word.Application")

The only negative that I'm aware of is that you have to explicitly define
any intrinsic Word constants you might be using.

Tony Toews has a bit of information about this at
http://www.granite.ab.ca/access/latebinding.htm
 

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