Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I am trying to fill a number of cells with months up to the curren month without having to hardcode the months. My problem is in the re line. I would appreciate all your help. Code ------------------- lastrow = Cells(Rows.Count, "A").End(xlUp).Row lastrow = lastrow + 3 For i = 2 To 2 For j = lastrow To lastrow With Cells((j), (i)) .FormulaR1C1 = "Jan" Cells(j, i).Select Selection.AutoFill Destination:=Range("B14:H14"), Type:=xlFillDefault End With Next Nex ------------------- Kind regard -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keep Destination Format | Excel Discussion (Misc queries) | |||
Destination Cell | Excel Discussion (Misc queries) | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) | |||
How do I autofill combo boxes with their destination cell? | Excel Worksheet Functions | |||
Help with "Autofill" Destination Range | Excel Programming |