Consulting

Results 1 to 3 of 3

Thread: Need formula converting RGB to vba backcolor

  1. #1

    Cool Need formula converting RGB to vba backcolor

    Anyone has or know any online converter?

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

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    CommandButton1.BackColor = RGB(255, 17, 63)

  3. #3
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    As Ken indicated, RGB is a VBA Function just like Left, Mid, and Right.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •