Hi there,
I'm trying to conditionally declare a public variable. The reason for this is to allow my code to progress to the stage where the user can be notified by the project that their Excel version is incompatible with the workbook being opened, the public variable is a RibbonUI Type (the ribbon isn't supported < Office 2007 and instead yields a compile error in these cases if the workbook involves a ribbon UI declaration, I'd rather it display my own message which is in the Workbook Open sub but the project compiles before the first line of the Workbook Open sub can be applied and the error shows up).
So is it possible I can conditionally declare a public variable e.g. (11.0 corresponds to Office 2003) where ExcelVersion is a function yielding the Excel version.
The above doesn't seem to work :<, can anybody help me out?Please Login or Register to view this content.
Thanks.
Bookmarks