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 / January 2006

Tip: Looking for answers? Try searching our database.

Adapting recorded macro to different amount of rows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yetti - 12 Jan 2006 07:43 GMT
If you record a macro for a regular process but you do not know how many
rows of data will be needed each month how do you change script to cater for
say a total being needed at end of the last rows.
Bob Phillips - 12 Jan 2006 09:10 GMT
Something like

   iLastRow = Cells(Rows.Count,"A").End(xlUp).Row
   Cells(iLastRow+1,"A") = ... your sum formula

Signature

HTH

Bob Phillips

(remove nothere from email address if mailing direct)

> If you record a macro for a regular process but you do not know how many
> rows of data will be needed each month how do you change script to cater for
> say a total being needed at end of the last rows.
yetti - 13 Jan 2006 07:28 GMT
Your help is most appreciated thank you
> If you record a macro for a regular process but you do not know how many
> rows of data will be needed each month how do you change script to cater
> for say a total being needed at end of the last rows.
 
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.