Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2006

Tip: Looking for answers? Try searching our database.

Macro fill down formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marc Knowles - 20 Dec 2006 18:26 GMT
I have set up a macro to do a series of calculations automatically in
spreadsheets with various numbers of records. The macro uses the 'fill down'
command to apply the formulae to all records. What is the simplest way to
stop the fill down at the last record? I set up my macro using the 'record'
function in excel.

Thanks
Gord Dibben - 20 Dec 2006 19:51 GMT
Marc

Enter a formula in C1 then run this macro.

Sub Auto_Fill()
Dim Lrow As Long
   With ActiveSheet.UsedRange
       Lrow = .Cells(.Cells.Count).Row
       Range("C1:C" & Lrow).FillDown
   End With
End Sub

Gord Dibben  MS Excel MVP

>I have set up a macro to do a series of calculations automatically in
>spreadsheets with various numbers of records. The macro uses the 'fill down'
[quoted text clipped - 3 lines]
>
>Thanks

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.