Hi All -
I am a new macro writer and my goal is to produce a macro that, at the cursor position, inserts 2 rows and copies a range into it. Then I want the macro to wait until I move to the next insertion point and then do the same thing again. And repeat until I've run out of departments - which is something I will determine. So far I have:
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveCell.Resize(2,1).EntireRow.Insert
Range("A5:I6").Copy Destination:=ActiveCell
End Sub
I'm stumped. Any help (or pity) would be greatly appreciated.
Amy
I am a new macro writer and my goal is to produce a macro that, at the cursor position, inserts 2 rows and copies a range into it. Then I want the macro to wait until I move to the next insertion point and then do the same thing again. And repeat until I've run out of departments - which is something I will determine. So far I have:
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveCell.Resize(2,1).EntireRow.Insert
Range("A5:I6").Copy Destination:=ActiveCell
End Sub
I'm stumped. Any help (or pity) would be greatly appreciated.
Amy