Hello!
I am trying to disable all the ActiveX controls in my workbook using VBA code. I know I can disable an individual control using this code:
But some sheets in my workbook have multiple controls, and not all controls are on all sheets. Is there a way to disable all of these without having to specifically name which controls are on which sheets?
Thanks for the help!
I am trying to disable all the ActiveX controls in my workbook using VBA code. I know I can disable an individual control using this code:
Code:
ActiveSheet.MyButtonsName.Enabled = False
But some sheets in my workbook have multiple controls, and not all controls are on all sheets. Is there a way to disable all of these without having to specifically name which controls are on which sheets?
Thanks for the help!