AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 1,835
- Office Version
- 2019
- 2016
- Platform
- Windows
Is this possible?
I found some details here (msg #9) Programmatically remove a control from userform but it wouldn't work for me.
I tried and got Run-time error '-2147024809 (80070057)': Invalid argument.
I have a Userform with 102 controls so some are hard to find. But I do have all their names.
I found some details here (msg #9) Programmatically remove a control from userform but it wouldn't work for me.
I tried and got Run-time error '-2147024809 (80070057)': Invalid argument.
VBA Code:
With myForm
.Controls.Remove "imgPlay0b"
End With