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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

BrianB

Well-known Member
Joined
Feb 17, 2003
Messages
8,127
Need to write a routine that goes through each button in each sheet & checks the colour. (?)
 
Upvote 0

Forum statistics

Threads
1,191,718
Messages
5,988,264
Members
440,146
Latest member
rgomes8

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
Top