Hi,
I have several command buttons on a worksheet. I want to be able to go through and change the 'enabled' property for all of them and was expecting to be able to do something like this:
dim cmdBtn as commandbutton
for each cmdbtn in sheet1.controls
cmdbtn.enabled = not cmdbtn.enabled
next
BUT, I can't find a controls collection or anything like it to use.
Any help would be appreciated
Cheers
I have several command buttons on a worksheet. I want to be able to go through and change the 'enabled' property for all of them and was expecting to be able to do something like this:
dim cmdBtn as commandbutton
for each cmdbtn in sheet1.controls
cmdbtn.enabled = not cmdbtn.enabled
next
BUT, I can't find a controls collection or anything like it to use.
Any help would be appreciated
Cheers