I have a macro that creates a drawing based on the dimensions I type into a form. It worked fine in Windows7 64b, but now on windows 11 it fails to load the form, This is the code that calls the form
Sub CreateUnit() UnitDimensions.Show vbModelessEnd Sub
Is there anything I can do to make it work in Windows11? FWIW My other macros are working fine as far as my testing to date has proven, but this is the only one that uses an input form
TIA
Run VBA (Alt-F11).Select menu item Debug / Compile... Perhaps the program itself will find the problem.Sometimes it happens that a variable is not correctly defined.If it does not help, try to go through the macro step by step (F8)Taras
Well, I tried to run the macro from the shortcut button, NADA.Opened Macro Editor and the macro code and ran it from there and the form pops up on screen. Restarted Draw and it now works every time!
Go figure
Thanks for the suggestion
Corel tricks