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 / Programming / March 2006

Tip: Looking for answers? Try searching our database.

how do I set the position to a specific cell location in excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lpdarspe - 28 Mar 2006 16:10 GMT
I want to make a macro in excel that will go to the end of a data column and
do a summation of the data in the row immediately following the data.
Toppers - 28 Mar 2006 16:33 GMT
lastrow = Cells(Rows.Count, "A").End(xlUp).Row ' will give last row in column A

Cells(lastrow + 1, "A") = Application.Sum(Range(Cells(2, "A"),
Cells(lastrow, "A")))

HTH

> I want to make a macro in excel that will go to the end of a data column and
> do a summation of the data in the row immediately following the data.
lpdarspe - 28 Mar 2006 17:53 GMT
Thanks!  It fit my requirements exactly!!

> lastrow = Cells(Rows.Count, "A").End(xlUp).Row ' will give last row in column A
>
[quoted text clipped - 5 lines]
> > I want to make a macro in excel that will go to the end of a data column and
> > do a summation of the data in the row immediately following the data.
Gary Keramidas - 28 Mar 2006 17:07 GMT
and just to give another option, if you want a formula instead of the value for
the total, you could use this

Range("A" & Lastrow + 1).Formula = "=sum(A2:A" & Lastrow & ")"

Signature

Gary

>I want to make a macro in excel that will go to the end of a data column and
> do a summation of the data in the row immediately following the data.
lpdarspe - 28 Mar 2006 17:53 GMT
Thank you very much.  It fit the requirements exactly!

> and just to give another option, if you want a formula instead of the value for
> the total, you could use this
[quoted text clipped - 3 lines]
> >I want to make a macro in excel that will go to the end of a data column and
> > do a summation of the data in the row immediately following the data.
 
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.