PDA

View Full Version : Need formula converting RGB to vba backcolor



Ken Crawford
12-06-2013, 06:41 PM
Anyone has or know any online converter? :rofl:

E.g I have RGB(255,17,63) and want to have VBA equivalent of this to change commandbutton backcolor.

Kenneth Hobs
12-06-2013, 08:13 PM
CommandButton1.BackColor = RGB(255, 17, 63)

SamT
12-07-2013, 11:04 PM
As Ken indicated, RGB is a VBA Function just like Left, Mid, and Right.