Hello Mr. Excel,
I have an Excel workbook that I developed using Excel 2010. I have upgraded to Excel 2019 a couple years ago. This workbook has 15 worksheets that have commands that reference to private VBA code behind each worksheet and also some public modules. It has worked fine for years.
I noticed the other day that Microsoft updated my computer (even though I always refuse them, they find a way to sneak it in anyway) because I saw the message that it had been completed. I'm still on Windows 10 Home. Now, if I click on any of my command buttons on the sheets, nothing. When I go into developer and access the VBA code, when I try to compile the code I am geting "variable not defined errors" on any reference to these commands or combo boxes that are also on the worksheets. For instance,
strRecipeName = cboFindRecipe.Text
This simple reference to the combo box "cboFindRecipe" gives the variable not defined error because it's not finding "cboFindRecipe" or doesn't understand it's an object in the sheet. These all used to work just fine. I have many commands and combo boxes in this workbook. Nothing works. I always use an option explicit declaration in my modules, but why or what has broken things so?
Thanks for your assistance.
Gary
I have an Excel workbook that I developed using Excel 2010. I have upgraded to Excel 2019 a couple years ago. This workbook has 15 worksheets that have commands that reference to private VBA code behind each worksheet and also some public modules. It has worked fine for years.
I noticed the other day that Microsoft updated my computer (even though I always refuse them, they find a way to sneak it in anyway) because I saw the message that it had been completed. I'm still on Windows 10 Home. Now, if I click on any of my command buttons on the sheets, nothing. When I go into developer and access the VBA code, when I try to compile the code I am geting "variable not defined errors" on any reference to these commands or combo boxes that are also on the worksheets. For instance,
strRecipeName = cboFindRecipe.Text
This simple reference to the combo box "cboFindRecipe" gives the variable not defined error because it's not finding "cboFindRecipe" or doesn't understand it's an object in the sheet. These all used to work just fine. I have many commands and combo boxes in this workbook. Nothing works. I always use an option explicit declaration in my modules, but why or what has broken things so?
Thanks for your assistance.
Gary