How do you insert a row into all worksheets?

lbass

Board Regular
Joined
Aug 15, 2002
Messages
104
I found you can group all the sheets using
sheets.select
But even with all the sheets grouped
inserting a row happens only with the last active sheet.

How can I insert a row in all the worksheets?

Thanks

Yes I tried searching - guess I just didn't know what to search for.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I would like for it to work on the active cell of the active sheet.

There are really 57 sheets and hundreds of names with new ones being added from time to time.

It is important to keep all the sheets aligned so that totaling formulas will work in the last sheet.
 
Upvote 0
I would like for it to work on the active cell of the active sheet.

There are really 57 sheets and hundreds of names with new ones being added from time to time.

It is important to keep all the sheets aligned so that totaling formulas will work in the last sheet.
 
Upvote 0
Sorry about the double send - my machine hung.

That did work but I wanted to work it into a VBA project.

If it can't be done then his method will work nicely.

Thanks
 
Upvote 0
how about --

Sub foo()
i = ActiveCell.Row
Sheets.Select
Rows(i).Select
With Selection
.Insert shift:=xlDown
End With
End Sub
 
Upvote 0
My quick test of this worked fine.

Thank you very much. I'll try it out on the real thing tonight.

Thanks again Last night I just couldn't put it all together.
 
Upvote 0

Forum statistics

Threads
1,216,057
Messages
6,128,520
Members
449,456
Latest member
SammMcCandless

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