Command Button Info. help

Harley78

Active Member
Joined
Sep 27, 2007
Messages
372
Office Version
  1. 365
Platform
  1. Windows
I have command buttons on 32 sheets that are labeled (eg. 1234560000 and so on) and are highlighted when selected.

Current Code:
If CommandButton28.BackColor = RGB(255, 255, 0) Then CommandButton28.BackColor = RGB(255, 255, 255) Else CommandButton28.BackColor = RGB(255, 255, 0)
Range("A33").Value = 1
If CommandButton28.BackColor = RGB(255, 255, 255) Then Range("A33").Value = ""


Now I want to make one sheet with all part numbers and when any box is yellow it will go to the "Complete List" tab and look through Column C for the part number. When it finds this number it will place the qty in Column B.

Its very simular to the original, but instead of doing this on the same sheet I am combining all selection from the different sheets to one. Can anyone point me in the right direction?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Need to write a routine that goes through each button in each sheet & checks the colour. (?)
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

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