Excel 2003 Prof.
Is there a way to declare and set objects as global constants other than doing it in the Workbook_Open()?
I ask because every time I hit the stop button while debugging I have to re-run the Workbook_Open() to reset my worksheet variables. I tried the following in a module:
but neither are working.
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]
Is there a way to declare and set objects as global constants other than doing it in the Workbook_Open()?
I ask because every time I hit the stop button while debugging I have to re-run the Workbook_Open() to reset my worksheet variables. I tried the following in a module:
Code:
const Set wkshtFormulas = Worksheets("Product Formulas")
const wkshtInventory as excel.Worksheet 'excel.Worksheet ("Inventory")
but neither are working.
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]