guilli_003
New Member
- Joined
- Jan 18, 2011
- Messages
- 6
Hello,
I am trying to create a Macro to Paste a selected range (A1:F48) from on worksheet ("Sheet1") to another one ("Sheet5") in the same workbook.
The "Sheet5" is empty, and i'd like the macro (When run for the 1st time) to paste the copied range from "Sheet1" in the cell A1 of "Sheet5".
For the 2nd, 3rd, 4th... Xth time, i'd like it to paste the selected range at the last cell with something in it (in the column A of "Sheet5").
Here is the idea of the code that doesn't work because it's an empty worksheet and i cannot tell it to go paste in A1:
Sheets("Sheet1").Select
Range("A1").Select
Range("A1:F48").Select
Selection.Copy
Sheets("Sheet5").Select
Range("A1").Select
Selection.End(xlDown).Select
Selection.PasteSpecial Paste:=xlPasteColumnWidths, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveSheet.Paste
Thanks in advance for your help.
Kind Regards,
Guillaume.
I am trying to create a Macro to Paste a selected range (A1:F48) from on worksheet ("Sheet1") to another one ("Sheet5") in the same workbook.
The "Sheet5" is empty, and i'd like the macro (When run for the 1st time) to paste the copied range from "Sheet1" in the cell A1 of "Sheet5".
For the 2nd, 3rd, 4th... Xth time, i'd like it to paste the selected range at the last cell with something in it (in the column A of "Sheet5").
Here is the idea of the code that doesn't work because it's an empty worksheet and i cannot tell it to go paste in A1:
Sheets("Sheet1").Select
Range("A1").Select
Range("A1:F48").Select
Selection.Copy
Sheets("Sheet5").Select
Range("A1").Select
Selection.End(xlDown).Select
Selection.PasteSpecial Paste:=xlPasteColumnWidths, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveSheet.Paste
Thanks in advance for your help.
Kind Regards,
Guillaume.