Hi all! I have a toggle button in sheet Start (toggle button called EN). I need to refer to it in almost each macro I create so I wanted to declare it outside of subs.
But my monkey way is not working and I cannot find a solution in google. I declared it in ThisWorkbook and used code
but is says Invalid Outside Procedure on Set line. Any idea how to declare this specific button outside of subs?
But my monkey way is not working and I cannot find a solution in google. I declared it in ThisWorkbook and used code
VBA Code:
Dim EN As ToggleButton
Set EN = Sheets("Start").EN
but is says Invalid Outside Procedure on Set line. Any idea how to declare this specific button outside of subs?