Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JTF JTF is offline
external usenet poster
 
Posts: 8
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating to autofill column B based on column A entry GirlFridayCA Excel Discussion (Misc queries) 2 December 2nd 08 10:46 PM
Automate Column Amts acss Excel Worksheet Functions 3 April 2nd 08 12:24 AM
automate column length wsk Excel Discussion (Misc queries) 1 May 13th 06 12:31 PM
Automate column selection Snoopy Setting up and Configuration of Excel 1 January 27th 06 03:26 PM
need to automate data into a column Rick Excel Discussion (Misc queries) 2 September 1st 05 09:25 PM


All times are GMT +1. The time now is 11:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"