Good Morning
I have several forms with multiple command buttons... all have different names however they all start with 'cmd'
Is there a way for a button to change colour when selected whilst changing the rest of the buttons on that form to their origional colour... I know how to do it, using this, when the buttons have numbers instead of names....
Many thanks for your help
Jim
For x = 1 To 18
Me.Controls("cmd" & x).BackColor = &HFFFFFF 'sorts the main cmd button backcolours, light grey
cmd1.BackColor = RGB(51, 204, 255) 'selected button turns blue
Next
Bookmarks