Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
True, pasting to a range is one form of PasteSpecial. But that is a range:
From the immediate window. i = 1 ? typename(Sheets("ReportOutput").Cells((i + 3), 6)) Range ? Sheets("ReportOutput").Cells((i + 3), 6).Address $F$4 This ran fine for me: Sub AAA() NumRows = 10 Sheets("ReportOutput").Range("F4").Copy For i = 1 To NumRows Sheets("ReportOutput").Cells((i + 3), 6).PasteSpecial xlPasteFormulas Next i End Sub Of course Bernie is correct that you don't need to loop. -- Regards, Tom Ogilvy "James" wrote in message ... "Tom Ogilvy" wrote in message ... Change Range to Cells Sheets("ReportOutput").Range("F4").Copy For i = 1 To NumRows Sheets("ReportOutput").Cells((i + 3), 6).PasteSpecial xlPasteFormulas Next i Thanks, I then get error 1004, PasteSpecial of Range class failed. I think becuase the pastespecial method can only be applied to a range? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Variable Range for NPV | Excel Worksheet Functions | |||
Variable not working | Excel Discussion (Misc queries) | |||
setting a range variable equal to the value of a string variable | Excel Programming | |||
variable range: l just can't get there! | Excel Programming | |||
Problem trying to us a range variable as an array variable | Excel Programming |