Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automate AutoFill in Column
HI all
I have a formula in cell J2 that needs to be copied down to fill the rest of column J. The problem is that the number of rows in the worksheet will vary from month to month. How do I indicate in the macro that the last row will vary? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automate AutoFill in Column
lastrow=cells(rows.count,"j").end(xlup).row
-- Don Guillett SalesAid Software "JTF" wrote in message oups.com... HI all I have a formula in cell J2 that needs to be copied down to fill the rest of column J. The problem is that the number of rows in the worksheet will vary from month to month. How do I indicate in the macro that the last row will vary? Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automate AutoFill in Column
Find the last row first sub FillDownInJ() dim lngLastRow as long lngLastRow=Cells(rows.count,"J").end(xlup).Row Range("J2:J" & lngLastRow).filldown end su -- hidek ----------------------------------------------------------------------- hideki's Profile: http://www.excelforum.com/member.php...fo&userid=1890 View this thread: http://www.excelforum.com/showthread.php?threadid=39775 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Automating to autofill column B based on column A entry | Excel Discussion (Misc queries) | |||
Automate Column Amts | Excel Worksheet Functions | |||
automate column length | Excel Discussion (Misc queries) | |||
Automate column selection | Setting up and Configuration of Excel | |||
need to automate data into a column | Excel Discussion (Misc queries) |