woodpecker2
New Member
- Joined
- Aug 2, 2007
- Messages
- 33
I've created a macro that enter a formula in a cell and should then copy/paste the formula into selected cells within column H.
There are in excess of 20,000 rows that this needs to be copied down to and I keep getting an error message informing me the range is to big.
I need to get the macro to work correctly and am struggling with this issue. Could someone help this novice?
My code is shown below:-
There are in excess of 20,000 rows that this needs to be copied down to and I keep getting an error message informing me the range is to big.
I need to get the macro to work correctly and am struggling with this issue. Could someone help this novice?
My code is shown below:-
Code:
"=IF(ISNA(VLOOKUP(RC[-7],Table,8,FALSE)),""Error"",VLOOKUP(RC[-7],Table,8,FALSE))"
Range("H3:I3").Select
Range("I3").Activate
ActiveCell.FormulaR1C1 = _
"Thursday"
Range("H3:I3").Select
Selection.Copy
Range("H3:H" & LastRow3).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False