VBA Code to Sum Same Cell from Multiple Sheets

KhanofTarkir

New Member
Joined
Sep 3, 2014
Messages
24
Hello, I am just starting to learn VBA to do some sales analyses.

Does anyone have VBA code that I could use in a module to sum all the values from the same cell in multiple sheets (i.e. cell C16 in US, EU, Canada sales worksheets) into a final master sheet?

I am guessing that the code would require me to enter in the number and names of the sheets I want to sum from, the cell that I want to sum, and the destination master sheet with the final sum.

I am very new to VBA so any help would be greatly appreciated!

Thank you.
 
Does anyone have VBA code that I could use in a module to sum all the values from the same cell in multiple sheets (i.e. cell C16 in US, EU, Canada sales worksheets) into a final master sheet?

Hi

Just a remark: do you really want to do it in vba?

Since the worksheets are contiguous you could use a 3D formula and add the cells directly:

=SUM(US:Canada!C16)
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,222,625
Messages
6,167,146
Members
452,099
Latest member
Auroraaa

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