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

Re: Conditional compilation on Word version by Jonathan

Jonathan
Tue Jul 06 09:57:28 CDT 2004


"David Rigler" <dave@itserviceltd.com> wrote in message
news:ebZLDc2YEHA.728@TK2MSFTNGP09.phx.gbl...
>
> 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.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup