Buttons

bobojimmye

New Member
Joined
Feb 7, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I'm trying to create a "button" that starts in red, turns green when clicked and reverts back to red at the beginning of a new week.... Can anyone help?

I now have just two buttons "stack" so when you click the top one it shuffles to the other.


thanks for reading; and I appreciate any help or suggestions.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Is it an ActiveX command button or a forms commandbutton? If the former, you can set its backcolor to red in design view then change it to vbgreen in the click event. As for flipping it back to red, you'll need a way to know that the week has advanced. That could be accomplished by comparing the current week value to a date in a sheet helper cell.
 
Upvote 0

Forum statistics

Threads
1,215,078
Messages
6,122,996
Members
449,093
Latest member
masterms

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top