I'm having a problem with running a form created using VBE (VBProject.VBComponents) in Excel 2011 on Mac OS X 10.13.6 (High Sierra). I have enabled a reference to 'Microsoft Visual Basic for Applications Extensibility 5.3', and trusted VBA project, so those aren't the issue.
I refer you to John Walkenbach's sample code at https://www.thespreadsheetguru.com/t...lete-userforms. On my Mac, the unchanged code runs fine until it reaches:
There it halts with "Run-time error '5': Invalid procedure call or argument"![]()
'Show This Form VBA.UserForms.Add(FormName).Show
I have googled for other code to do similar things (using VBA to create a form and run it) and they all use the same command shown above. I've tried it under Catalina and Excel 2019 with the same results. I have tried it under Windows 7 and Excel 2007 and it works just fine.
So, is there some further adjustment(s) I need to set on my Mac to run this? Or is this an error on the part of Microsoft development, that is, leaving a property in the dictionary when porting over to the Mac without implementing the code to support it?
To me it looks like only early binding works on the Mac - that is, define the form in the editor and you can run it by name, but create it in VBA code and you can't.
Do you know of a solution that allows me to run JWalk's code on the Mac?
Bookmarks