I would like to expand some of my macro functions so they work under multiple versions of Excel. With most languages I would use compile time directives. Visual Basic has these options but there are very few constants defined. If I do not use compile time directives then the code will not compile (certain functions can not be resolved). I only care about 2007 and 2010 versions (I use #vba defines for the older versions).
Is there a way of determining Excel's version number for use in compile time directives?
Bookmarks