Conditional compilation on Word version

D

David Rigler

Hi

anybody know how to get a conditional compilation based on the version
of word ?? This bit of code doesnt work but illustrates what i need

#if Val(Application.Version) > 8 Then ' 8 = Word97, 9 = Word2000
blahblah
#endif

Actually what i need is way of telling whether the Assistant(clippy) is
loaded that works in both Word97 and Word2000, unfortunately the
assistant appears to behaves slightly differently in each so i need
different code.

thanks

Dave
 
J

Jonathan West

David Rigler said:
Hi

anybody know how to get a conditional compilation based on the version
of word ?? This bit of code doesnt work but illustrates what i need

#if Val(Application.Version) > 8 Then ' 8 = Word97, 9 = Word2000
blahblah
#endif

Actually what i need is way of telling whether the Assistant(clippy) is
loaded that works in both Word97 and Word2000, unfortunately the
assistant appears to behaves slightly differently in each so i need
different code.

The VBA6 compiler constant will distinguish between Word 97 (False) and all
later versions (True). There are no compiler constants that distinguish
between later versions of Word.
 

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