EnPasDialektos
Technical User
Excel 2003...I created a form with nine textbox controls, wrote subs for keyboard events, even logged activity to an external file. I also created Workbook_Open and Workbook_BeforeClose subs to autoload and autounload the form.
Throughout the process, I was able to open the workbook and have the userform loaded and shown in vbModal status. Suddenly, at some point just after I had a userform that was ready for real use, the error message began popping up: Error 91: Object variable or With block variable not set. The error always ponited to the form reference in either the Workbook_Open or Workbook_BeforeClose subs.
What happened? I did not change the workbook level macros at all during this process.
Thanks in advance for your response.
Throughout the process, I was able to open the workbook and have the userform loaded and shown in vbModal status. Suddenly, at some point just after I had a userform that was ready for real use, the error message began popping up: Error 91: Object variable or With block variable not set. The error always ponited to the form reference in either the Workbook_Open or Workbook_BeforeClose subs.
What happened? I did not change the workbook level macros at all during this process.
Thanks in advance for your response.