Hi all,
I was reading through an open source add-in’s code when I stumbled upon this block:
#If FullRecalc Then
Application.Volatile
#End If
I had never seen a number sign preceding “If” or “End if”. FullRecalc, in turn, is defined as:
#Const FullRecalc = False
Searching a little, I found this.
However, I cannot figure what “compile” would mean in Excel. Can VBA code be compiled in some way?
In particular, I was perusing the code to check whether a certain UDF was volatile or not. After reading this block, I still don’t know if Application.Volatile is included only in case “the code is compiled” or if the function is already volatile even when FullRecalc = False.
Thank you