Sum totals from new sheet data VBA

silvertyphoon1

New Member
Joined
Nov 14, 2010
Messages
18
I have a form with a button and list box. When I select and item from the list box and click the button it creates a new sheet with the name from the list box selection, as well as adds the same name selected to another sheet already in existence called (Sheet B). The name is added to the next row down in column B of (Sheet B). I have all of this working fine.

My problem is that when the new sheet is added and the name to (Sheet B), I need to find some way to insert a formula on (Sheet B) column D that takes the sum from the newly created sheet F4:F75. So each time I click the button on the list box the formula is created on (Sheet B). This way when I input numbers on the new sheet I will always have the totals on that (Sheet B).
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
rootytrip

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