+ Reply to Thread
Results 1 to 2 of 2

Selectively and collectively setting the color of 50 CommandButtons

  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    Bradenton,florida
    MS-Off Ver
    Excel 2007
    Posts
    40

    Question Selectively and collectively setting the color of 50 CommandButtons

    I have a program which involves 50 CommandButtons identified as N1-N50

    When the program gets started I want to run a loop that sets the back colors of the command buttons to Blue

    After that any time a button is clicked, I would like to change the color of selected button to white

    Help Please
    Thank you

    JoeBBB

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Selectively and collectively setting the color of 50 CommandButtons

    Hello joebbb,

    You don't mention if we are looking only at ActiveX Control Buttons, or Forms Buttons. It could also be rectangular Shapes representing the appearance of a Button. If it is ActiveX Control buttons, you could replace all of them with ActiveX-Toggle Buttons, where every time a Button is Clicked it alternates between Blue and White.



    Also, attach a small sample workbook (not a picture or pasted copy).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

+ 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. [SOLVED] change the color of commandbuttons vba
    By sandordan_01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2018, 06:24 AM
  2. How do I selectively set the back color of 1 of 625 textboxes in a userform
    By joebbb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2016, 02:19 PM
  3. Setting Color of Range based on adjacent cell color
    By JimE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-02-2009, 09:04 PM
  4. Change color of commandbuttons based in cell values
    By mmf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2008, 08:50 AM
  5. Cell background color (interior color) setting not working
    By Martin E. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2006, 02:10 PM
  6. [SOLVED] Can I delete multiple blank rows collectively?
    By bursar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2006, 08:15 AM
  7. Replies: 6
    Last Post: 12-02-2005, 07:55 PM

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