Thank you for reading this
I want to use the last method of reference inside CBG_Click - how do I do that?
UserForm1.Buttons(2).CBG.BackColor = vbRed FAILS
Scenario :Userform with 3 command buttons with group click event (via class module) returning message box "Hello"
Buttons are added to that group in a particular sequence and I need to use that sequence
Within the userform code background colour of CommandButton3 can be amended with any of these:
Me.Controls("CommandButton3").BackColor = vbRed
Me.CommandButton3.BackColor = vbRed
Buttons(2).CBG.BackColor = vbRed
Class Module code (module is named cbClass)
In Module1Please Login or Register to view this content.
Userform CodePlease Login or Register to view this content.
HTML Code:
Bookmarks