Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
AutoFill on selection
Hi all, Trying to use AutoFill on a selected range instead of a hardcoded range. Ie: if i have a formula in B1, then i select B1 and highlight a range. I want the formula copied as progressive into the range. Trying stuff like this with no joy. Sub FillTest() With Selection '.AutoFill Destination = fillRange '.AutoFill (Destination = fillRange) 'SourceRange.AutoFill Destination:=fillRange End With End Sub Sub FillTest() Selection.AutoFill Destination:=ActiveCell.Range("Want Selected range here"), _ Type:=xlFillDefault End Sub -- Desert Piranha ------------------------------------------------------------------------ Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934 View this thread: http://www.excelforum.com/showthread...hreadid=519047 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Selection AutoFill, Excel 2000 & 2003 | Excel Worksheet Functions | |||
Function to store last row and use in autofill selection | Excel Programming | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) | |||
Q. Autofill question: Can I autofill alpha characters like I can numbers? | Excel Programming |