Code for 2k AND XP

Z

zSplash

I have code that I need to run in both Word 9.0 and in Word 10.0 (2k and
XP). I have written the following, to accomodate both, but get an error
("") in Word 9.0. What's the work-around? I obviously have no Word 10.0
Object Library in References in the PC's with Word 9.0...

If Application.Version = "10.0" Then 'XP
With Options
.labelsmarttags = False
.displaysmarttagbuttons = False
End With
End If

TIA
 
Z

zSplash

Solved:

If I put the "With...End With" part in a separate sub, I don't get the error
message ("Method or Data Member Not Found") and bypass the referencing
problem. (When it needs to go there, it won't get the problem). (...whew.)

st.
 

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