Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, just use
Selection.AutoFill Destination:=Range("ValuesX1") -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Chris" wrote in message ... If I go to Insert | Name -- Define and define a name as a range, can I just replace an absolute range in VBA with the named range? For example my named range is called ValuesX1. ValuesX1 = offset($C$1,0,0,countif($A:A$,1),1) When I record a macro and autofill a range in column C, my VBA code looks like this: Selection.AutoFill Destination:=Range("Y1:Y61") However my range changes for different worksheets so can I just replace "Y1:Y61" with ValuesX1? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Replacing a list of codes with names | Excel Worksheet Functions | |||
Replacing A,B,C column names to other names | Excel Discussion (Misc queries) | |||
Replacing Range Names | Excel Discussion (Misc queries) | |||
searching names for '*', replacing it with first name | Excel Programming | |||
replacing just the sheet names within formulas | Excel Worksheet Functions |