Compiling Error in Earlier Version of Excel
Hi
thanks for that
it is Excel 2007 where I'll want it to work unfortunately: that's what we
have at work. will try it next week
Tim
"joeu2004" wrote in message
...
"Tim Childs" wrote:
This piece of code
ThisWorkbook.ForceFullCalculation = True
will work in Excel 2007 and above
Is there any way to mark the code so that it
will avoid the COMPILING error in earlier versions
#If VBA7 Then
ThisWorkbook.ForceFullCalculation = True
#End If
VBA7 is false (undefined) in Excel 2003 and true in Excel 2010. I don't
know about Excel 2007.
|