TomCooper88
New Member
- Joined
- Aug 8, 2013
- Messages
- 2
Hello People!
I hope someone here can help me... I have made a macro that copies a row into a new sheet:
Sheets("Datasheet").Select
Range("A2").Select
ActiveCell.EntireRow.Insert Shift:=xlDown
Sheets("MailMerge").Select
Range("A7:G7").Select
Selection.Copy
Sheets("Datasheet").Select
Range("A2:G2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
What I want now, is that everytime a new row is copied in the second row (first row are names),
The cell A2 to get a number that is +1 to the last one. So starting with 1, the second copied row would be 2, etc etc...
I hope there's somebody out there who knows the answer!
Kind Regards,
Tom
I hope someone here can help me... I have made a macro that copies a row into a new sheet:
Sheets("Datasheet").Select
Range("A2").Select
ActiveCell.EntireRow.Insert Shift:=xlDown
Sheets("MailMerge").Select
Range("A7:G7").Select
Selection.Copy
Sheets("Datasheet").Select
Range("A2:G2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
What I want now, is that everytime a new row is copied in the second row (first row are names),
The cell A2 to get a number that is +1 to the last one. So starting with 1, the second copied row would be 2, etc etc...
I hope there's somebody out there who knows the answer!
Kind Regards,
Tom