K
katie
The following code allows me to select a row on sheet 1,
and then run the code and cause a new row to be created in
the identical place on the following 8 worksheets.
Private Sub CommandButton1_Click()
ActiveCell.Resize(1, 1).EntireRow.Insert
Worksheets("Year Summary 02-03").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Year Summary 03-04").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Budgeted Hours").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Associates Hours (actuals)").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Directors Hours (actuals)").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Invoices (actuals)").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Project Costs").Rows
(ActiveCell.Row).EntireRow.Insert
End Sub
Any ideas how this can be extended to make the new
rows 'copy down' the formulae from the row above where
they are created.
Thanks.
and then run the code and cause a new row to be created in
the identical place on the following 8 worksheets.
Private Sub CommandButton1_Click()
ActiveCell.Resize(1, 1).EntireRow.Insert
Worksheets("Year Summary 02-03").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Year Summary 03-04").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Budgeted Hours").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Associates Hours (actuals)").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Directors Hours (actuals)").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Invoices (actuals)").Rows
(ActiveCell.Row).EntireRow.Insert
Worksheets("Project Costs").Rows
(ActiveCell.Row).EntireRow.Insert
End Sub
Any ideas how this can be extended to make the new
rows 'copy down' the formulae from the row above where
they are created.
Thanks.