dinesh shah
New Member
- Joined
- Aug 16, 2012
- Messages
- 24
Dear Friends,
Greetings!
While entering data every time I am required to copy contents of Row 2 and paste them in the last empty
row in the same sheet. As I am still learning VBA coding to simplify my works, I have recorded the following
Macro which works. But I think it can be made more simpler by reducing the number of lines. Can someone
help me by showing how?
Sub PostT1toT1()
Sheets("T1").Select
Range("2:2").Select
Selection.Copy
Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").EntireRow.Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
End Sub
Thanks in advance,
Dinesh Shah
Greetings!
While entering data every time I am required to copy contents of Row 2 and paste them in the last empty
row in the same sheet. As I am still learning VBA coding to simplify my works, I have recorded the following
Macro which works. But I think it can be made more simpler by reducing the number of lines. Can someone
help me by showing how?
Sub PostT1toT1()
Sheets("T1").Select
Range("2:2").Select
Selection.Copy
Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").EntireRow.Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
End Sub
Thanks in advance,
Dinesh Shah