+ Reply to Thread
Results 1 to 3 of 3

code for option button to change label colour

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    durham
    MS-Off Ver
    Excel 2003
    Posts
    4

    code for option button to change label colour

    I have a userform that has over 40 groups of 1 label and 3 option button. I am trying to write code that will change the backcolour of the label to visually advise user of what has been selected. I have the code per option button but there are going to be over 100 bits of code the same. on a previous post for text box change, the replies was to use class modules, I have got to work on the option button backcolor but I want to change the label colour if possible.
    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: code for option button to change label colour

    Is the 'label' the caption of a frame control or an actual label control?

  3. #3
    Registered User
    Join Date
    10-28-2010
    Location
    durham
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: code for option button to change label colour

    The label and option buttons are on the user form not in a frame so the code is for Labelx.backcolor.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How change label value for each click button ??
    By WILKER in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 11-02-2012, 12:25 PM
  2. VBA to change label, marker style and colour
    By Rajoli in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 08:31 AM
  3. [SOLVED] If Userform ListBox contains specific item then change label background colour.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-06-2012, 06:38 AM
  4. How do I change the colour of the cell to yellow when I click the option box ?
    By achill3s in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2012, 09:46 PM
  5. [SOLVED] How do I change the cell colour per dropdown option?
    By Emma962 in forum Excel General
    Replies: 1
    Last Post: 08-11-2006, 10:10 AM

Tags for this Thread

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