inserting line macro

claire87

New Member
Joined
Feb 7, 2005
Messages
2
i want to be able to create a macro on my speadsheet to insert a row, but when the row is inserted i want the formular in my total to change to include the new row. how do i do this? someone please help me urgently!

thanks

claire
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

dsgs

Active Member
Joined
Oct 25, 2004
Messages
360
hi claire87,

welcome to the board.....

you could do the following:
- name the range you would like to calculate the total.
- make your formula like this =sum("namedrange")
- record a macro (through Tools --> Macro --> Record Macro) and insert a row...
- at last you could add a button and apply the macro to it...

good luck!

greetz

david
 

Watch MrExcel Video

Forum statistics

Threads
1,122,822
Messages
5,598,307
Members
414,224
Latest member
Crazy_FC

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