+ Reply to Thread
Results 1 to 3 of 3

excel/vba rgb value in cell

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Padua, Italy
    MS-Off Ver
    Excel 2007
    Posts
    2

    excel/vba rgb value in cell

    hello,
    I have this problem that is driving me crazy!

    row a row b
    uk RGB(191, 13, 31)
    usa RGB(11, 47, 107)

    I have a form with a combobox where there is a list from row a, now with a macro I should change the background of a texbox with the color of row b.
    I get the error at thi " TextBox1.BackColor = y"
    this is the macro

    Please Login or Register  to view this content.


    thanks for your help
    Last edited by arlu1201; 09-21-2012 at 02:04 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: excel/vba rgb value in cell

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    Padua, Italy
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: excel/vba rgb value in cell

    really sorry!
    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1