Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I need to save a range in a variable for later use in an autofill function. It fails on the autofill line as the value in rng is returned as TRUE and not the range data I expected. I have tried different permutations but all that changes is the error message. The code is as follows: RNG = Range("A2", Range("A2").End(xlDown)).Select Columns("A:A").Select Selection.Insert Shift:=xlToRight Range("A2").Select ActiveCell.FormulaR1C1 = "=STRIPCN(RC[3])" Selection.AutoFill Destination:=RNG, Type:=xlFillDefault Thanks for any suggestions. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Storing textin a variable and comparing to a second value | Excel Discussion (Misc queries) | |||
Storing a range variable in a cell | Excel Discussion (Misc queries) | |||
Storing a value to variable | Excel Discussion (Misc queries) | |||
Storing value in a variable from a cell | Excel Programming | |||
Storing a Macro name in a Variable | Excel Programming |