Excel Versions and defineing word.application

  • Thread starter Thread starter stevenmckeon
  • Start date Start date
S

stevenmckeon

Hi All,

I have an Excel sheet that has a number of macros running - from th
excel sheet a quote is exported to word. All works well on my machin
(Office XP 2002) and appears to work well on newer versions of exce
and word. However I need it to run on Office 2000 and possibly Offic
97.

When I run it on Off2000 I get a VBA error:

Compile Error:
Cant find project or library.

and it highlights the line in my code

Dim appWD As Word.Application

so I assumed it was a library problem that I needed to tell it i
Tools/references that it was microsoft word X.X - however in bot
Office 2000 machine I tested on the Available references had

MISSING:Microsoft word 10.0 object library
but it was still checked?

Any ideas on how I can get this running would be greatly appreciated.

THank
 
I believe, even though it is missing, the checked status remains. Anyway, If you didn't try unchecking and then browsing to the dll and adding it in again, try that.
I'm not sure if a Word 10 dll is backward compatible. If possible try using an earlier version ie. 8 . If you're macros run ok, then stick with the earlier version.

Hope that helps.
Paul
 

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

Back
Top