Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I have code that copies from a sheet to a new sheet in a different workbook. It's doing appends onto the same sheet. For the first paste I want to paste everything, but for the second paste, I want to paste everything minus the first row, which is a header row. In the Else how do I tell VBA to ActiveSheet.Paste (-1) ???? This If-Then-Else If lastrow2 = 1 Then ActiveSheet.Paste Else real = lastrow2 + 1 Range("A" & real).Select ActiveSheet.Paste End If Thanks for the help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to change all cells from minus to plus and plus to minus | Excel Worksheet Functions | |||
Copy Selection - Paste Selection - Delete Selection | Excel Programming | |||
Paste into autofilter selection! | Excel Worksheet Functions | |||
CHANGE TRAILING MINUS TO BRACKETS OR PRECEEDING MINUS | Excel Discussion (Misc queries) | |||
paste selection?? | Excel Programming |