Dynamic Conditional Compilation Question 
Author Message
 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?



Wed, 28 Sep 2005 02:10:06 GMT  
 Dynamic Conditional Compilation Question
Sorry - got a reply to an earlier version of this
question - did not realize my earlier post made it up and
reposted. Thanks, all -- I'll try that fix soon

-- ian

Quote:
>-----Original Message-----
>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?
>.



Wed, 28 Sep 2005 02:29:55 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. global conditional compilation constants in Access 2002

2. conditional compilation constants

3. Access 97: MDE ignores Conditional Compilation Arguments

4. can you change conditional compilation constants in c0de?

5. Conditional Compilation

6. Conditional Compilation Arguments and MDE

7. Conditional Compilation Help

8. Conditional compilation to run Word2000 and 97 code under Word97

9. Conditional JIT compilation?

10. Conditional Compilation Help

11. FYI: Conditional Compilation (Pedantic) Features

12. Conditional compilation of forms

 

 
Powered by phpBB® Forum Software