VBA code to search each sheet for specific values

Zimmerman

Well-known Member
Joined
Jan 22, 2009
Messages
663
Can somebody help me out with a VBA code that will search thru the 28 sheets in a workbook and if a value is found, then return that value to another sheet. I have a workbook that has 27 sheets that we use to cost out a project. and on the 28th sheet is a totals page. I would like to have say cell C2 look thru each tab and look at each value in cell A2 and B2. If they match the value in cell A2 and B2 in this totals tab then return the value of cell B3 from what it searched for. But there may be 10 values that match so I'd like to be able to have them all add up.

Thanks in advance
Windows XP
Excel 2003
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,517
Messages
6,179,242
Members
452,898
Latest member
Capolavoro009

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