+ Reply to Thread
Results 1 to 3 of 3

Code for a master command button to change the backcolor of multiple command buttons?

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    sydney, australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Code for a master command button to change the backcolor of multiple command buttons?

    I have multiple command buttons which change their backcolor to green when pressed as a visual reminder that certain tasks have been completed.
    When the entire project is completed, I would like to press a master command button to restore all the other command buttons backcolor to the default grey.

    I am using excel 2003 with the command buttons from the control toolbox and entered directly on a spreadsheet.

    Thanks

    Panttherm5

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Code for a master command button to change the backcolor of multiple command buttons?

    Maybe something like this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    sydney, australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Code for a master command button to change the backcolor of multiple command buttons?

    Mike, Thanks, your code works well on a single command button.
    I really want a master command button that when pressed changes the backcolor on 25 other command buttons simultaneous .
    I can repeat your code 24 times in the command button1 code window and change the command button number from 2 to 24 to achieve this.
    I was wondering if there was a simpler way to do it.
    Thanks
    Panttherm5

+ 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