Hi everyone. Long time reader, first time poster.
I am pretty good with VBA now and familiar with some Mac/PC issues (and Ron DeBruin's site). I know the ribbon is difficult to customize in Excel 2011 for Mac, so I created a variable so that the code would only execute on a PC. Yet I receive a "Compile Error: Method or data member not found" message.
The '.ExecuteMso' portion is highlighted in blue, and the Private Sub MacroName line is highlighted in yellow. "TestMac" accurately determines what operating system is in place, but I put in a breakpoint before it and it doesn't even get to that. I don't understand why. I'm guessing Excel reads the whole code first to compile it and then again in runtime or something?
Can someone explain this to me? The goal is just to minimize the ribbon when the macro is run on a PC.
Thanks,
Jeff
Bookmarks