Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.setup
|
|||
|
|||
Paste rows in macro
I need to copy and paste rows using macro. Column P has a number in it. That
is the number that I want to copy rows. |
#2
Posted to microsoft.public.excel.setup
|
|||
|
|||
Paste rows in macro
Sub copy()
Dim pnum As Integer pnum = Range("P1").Value ActiveCell.Resize(pnum, 12).copy Destination:=Sheets(2).Range("A1") End Sub Gord Dibben MS Excel MVP On Wed, 20 Aug 2008 13:22:26 -0700, murphy wrote: I need to copy and paste rows using macro. Column P has a number in it. That is the number that I want to copy rows. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to find and paste rows | Excel Discussion (Misc queries) | |||
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows | Excel Worksheet Functions | |||
Macro to: Find a Reference, and then Paste into the 10 Rows Below | Excel Discussion (Misc queries) | |||
Hide Rows - copy and paste only rows that show | Excel Worksheet Functions | |||
flexible paste rows function that inserts the right number of rows | Excel Discussion (Misc queries) |