I need to use Conditional Compilation because I have an excel sheet that I need to use in 97 and 2000. I need to turn off an option that is only valid in Excel 2000 when I run Excel 2000.
I have tried various methods and I keep getting hung up on the fact that I can't get the Application Version when the code actually compiles.
The code I am using is:
#If appVer = 1 Then
cht.Activate
ActiveChart.HasPivotFields = False
#End If
End If
But when I set up my #Const AppVer = 1 it really needs to know the Application Version which it doesn't know until the code is actually executed.
Any help would be greatly appreciated.
Thanks in advance
jshulman
I have tried various methods and I keep getting hung up on the fact that I can't get the Application Version when the code actually compiles.
The code I am using is:
#If appVer = 1 Then
cht.Activate
ActiveChart.HasPivotFields = False
#End If
End If
But when I set up my #Const AppVer = 1 it really needs to know the Application Version which it doesn't know until the code is actually executed.
Any help would be greatly appreciated.
Thanks in advance
jshulman