Activate all sheets
B. R.Ramachandran
Many thanks for your response, however ....
I do know how to do all that you are suggesting.
I am trying to make a worksheet noddy-proof, for a user who wishes to
use it to input data, and occasionally insert a new row, at different
positions,
but on *all* worksheets, and then to copy a selection to all rows in the
worksheets.
At the moment, I have a macro, that I cannot seem to get to work as I would
like it to.
As stated in my previous post, the enclosed macro groups all the sheets,
and inserts a new row, but only on the first worksheet.
Sheets(Array("Eng", "Scot", "Wales")).Select
Selection.EntireRow.Insert
ActiveWindow.SmallScroll ToRight:=19
Range("AD5:AE5").Select
Selection.AutoFill Destination:=Range("AD5:AE593"), Type:=xlFillDefault
Range("AD5:AE593").Select
ActiveWindow.SmallScroll ToRight:=-19
ActiveWindow.ScrollRow = 5
Range("D5").Select
End Sub
Can I please ask?
Is what I am trying to do achievable?
Should enclosed macro work?
If not, can someone please help me to change the macro, as needed?
Many thanks
George
B. R.Ramachandran wrote:
Hi,
You can insert a new row in several sheets at the SAME position
without having to invoke a macro.
Select all the sheets where you want to insert a new row (you can
select multiple sheets by holding the CTRL button and clicking on the
sheet tabs at the bottom of the sheets), right-click on the row
number (near the left-side border of the sheet) where you want to
insert a new row and click 'Insert" in the drop-down list. A new row
is inserted in every sheet selected.
Now click on one of the sheet tabs to undo the multiple sheet
selection.
Regards,
B. R. Ramachandran
"George Gee" wrote:
Hi
I need help with the following macro:
I am grouping all the worksheets together, and selecting the
row, above which I wish to insert a new row.
I want to insert a new row on all sheets, the enclosed macro
at the moment is only inserting a new row on the first sheet.
Selection.EntireRow.Insert
Range("AD5:AE5").Select
Selection.AutoFill Destination:=Range("AD5:AE594"),
Type:=xlFillDefault Range("AD5:AE594").Select
ActiveWindow.ScrollRow = 5
Range("D5").Select
Can anyone help me with this?
George Gee
|