Gary Hillerson was telling us:
Gary Hillerson nous racontait que :
> Hi,
>
[quoted text clipped - 26 lines]
>
> Any advice appreciated
I believe that if you use totally separate modules you should be OK.
When you call a sub, the compiler only compile the current module, not the
whole project.
So, if you have a central module that contains the version detection code,
which in turn call one of two modules depending on the detection result, it
should work.
Or, see this thread for another idea:
http://tinyurl.com/tekav

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Jay Freedman - 28 Nov 2006 01:28 GMT
>Gary Hillerson was telling us:
>Gary Hillerson nous racontait que :
[quoted text clipped - 41 lines]
>Or, see this thread for another idea:
> http://tinyurl.com/tekav
I concur. These techniques are the only ways I'm aware of to make the
same code compile in both old and new versions. They work, but they're
nowhere near as convenient as a compiler constant.
I talked to the leader of the Word programmability team in September
2005 about including a conditional compilation constant for Office
2007 like "Mac" and "VB6". For whatever reason, it wasn't implemented.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.