Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Autofill
Hi,
how do I write a macro such that it'll copy the active cell and then autofill to the cell to the right of the active cell? (ie, active cell is Jun-05 and if i do a manual mouse click drag to the right, the right cell will show Jul-05) Thanks, Dolphin |
#2
|
|||
|
|||
Autofill
I tried this:
ActiveCell.Select Selection.AutoFill Destination:=ActiveCell.Offset(-1, 0).Resize(16), Type:=xlFillDefault But it don't work! Why? Regards, Dolphin "Dolphinv4" wrote: Hi, how do I write a macro such that it'll copy the active cell and then autofill to the cell to the right of the active cell? (ie, active cell is Jun-05 and if i do a manual mouse click drag to the right, the right cell will show Jul-05) Thanks, Dolphin |
#3
|
|||
|
|||
Autofill
This will autofill ONE cell to the right to ActiveCell with next month, same
day: Selection.AutoFill Destination:=ActiveCell.Resize(1, 2), Type:=xlFillMonths From your example Selection.AutoFill Destination:=ActiveCell.Offset(-1, 0).Resize(16), Type:=xlFillDefault I suppose you want to autofill 16 columns, if so, apply Resize(1,16) Regards, Stefi "Dolphinv4" wrote: I tried this: ActiveCell.Select Selection.AutoFill Destination:=ActiveCell.Offset(-1, 0).Resize(16), Type:=xlFillDefault But it don't work! Why? Regards, Dolphin "Dolphinv4" wrote: Hi, how do I write a macro such that it'll copy the active cell and then autofill to the cell to the right of the active cell? (ie, active cell is Jun-05 and if i do a manual mouse click drag to the right, the right cell will show Jul-05) Thanks, Dolphin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Autofill | Excel Worksheet Functions | |||
More- AutoFill with Non-Seqeuntial Cell References ? | Excel Worksheet Functions | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) | |||
Relative reference autofill increment other than +1 | Excel Discussion (Misc queries) | |||
AutoFill Visible Cells with Months | New Users to Excel |