Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It works fine if Sheet1 is the activesheet. otherwsie try
With Worksheets("Sheet1") .Range("G7").AutoFill Destination:=.Range(.CELLS(7,7),.CELLS(7,13)), Type:=xlFillDefault End With -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Greg Glynn" wrote in message ups.com... Hi, This works: Worksheets("Sheet1").Range("G7").AutoFill Destination:=Range("G7:K7"), Type:=xlFillDefault but this doesn't ... Worksheets("Sheet1").Range("G7").AutoFill Destination:=Range(CELLS(7,7),CELLS(7,13)), Type:=xlFillDefault Can anyone suggest a way to autofill some column headings for numeric number of columns? Ideally, I'd like to do something like this: Dim MyColumns as Integer MyColumns = 8 Worksheets("Sheet1").Range("G7").AutoFill Destination:=Range(CELLS(7,7),CELLS(7,7 + MyColumns)), Type:=xlFillDefault Any help would be appreciated. Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofill reference series | Excel Worksheet Functions | |||
VLOOKUP Changing reference cells in autofill | Excel Worksheet Functions | |||
reference autofill. | Excel Worksheet Functions | |||
How can I autofill a series to reference non adjacent cells? | Excel Discussion (Misc queries) | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) |