
Dynamic Conditional Compilation Question
I am trying to develop a small Word
VBA app that runs on
both Office 2k and Office XP. There is an operation I
need to perform that is done differentily in XP and 2k,
and the function won't compile in the "wrong" environment.
For now, I have put in a conditional compiler constant,
#Version, that tells the system which version it is in,
so that the thing will work. But I have to change the
macro code for each person who has the VBA app to ensure
it works on their system.
I can't, of course, set the value of a constant
dynamically depening on application.version, but that is
basically what I need to do.
Anyone have any ideas?