RAYLWARD102
Well-known Member
- Joined
- May 27, 2010
- Messages
- 529
At times, I 've wanted to remove; rather then hide, some manually, or dynamically created commandbuttons from a userform. Can anyone show two examples of how to accomplish that with code.
I tried the code below against som of my manually created buttons, but cannot seem to make it work.
Any idea's on how to achieve this?
I tried the code below against som of my manually created buttons, but cannot seem to make it work.
Code:
Dim ctl As MSForms.Control
For Each ctl In specialty.Controls
specialty.Controls.remove ctl
Next ctl
Any idea's on how to achieve this?