Paste formula into selection
I'm trying to copy the existing formulae in a selected range <
Range("A2:D2").Copy , then paste into the cells immediately below them for
a number of rows. (The row count varies, depending on my query results.)
Problem now, is that my sheet has grown to the point, that I get an error
saying the selection is too large to paste into. I have changed my code to
increment through the rows 1 row at a time, and populate the cells with my
formulae, but this has slowed me down a bit.
Any ideas?
Here's the code I started with for the copy and paste.
Dim strLastRow As String
Range("A2").End(xlDown).Select
strLastRow = ActiveCell.Row
'Range("A2:D2").Copy
'Range("A3:D" & strLastRow).PasteSpecial xlPasteFormulas
'Application.CutCopyMode = False
--
D.S.
|