I can't seem to figure out what is causing Excel to freak out over the sequence below:
Subroutine initializes the userform:
Userform code:
User selection is passed through to MakeOrderTbl(Supp as String) subroutine:
I have "Stop" lines throughout the MakeOrderTbl(Supp as String) sub because I'm still tinkering with it. After stepping through a few stops, if I reset/end the procedure in the middle of MakeOrderTbl and then try to save the file, Excel crashes. I'm assuming the problem has to do with the way I'm initializing the userform, because if I run the Private Sub Userform_Initialize routine straight from the VBE, it doesn't cause a crash.
Any ideas how to fix this? I've been searching the internet for the last two days and have tried a code cleaner and have also tried AdLoki's suggestion found here: http://www.excelforum.com/excel-prog...een-saved.html
I also tried initializing the userform with:
Sheetname "Maint" and button name "btn_CreatePO". I later saw this referenced without the sheetname+underscore prefix and have tried that as well.
Thanks for your thoughts.
Bookmarks