LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default VB to AutoSum

In the following, the last action is to sum Row 2:Row 1889. Row 1889 varies
each time I run the report. I am looking for some way to either AutoSum in
the active cell or count the number of rows above the active cell (minus the
header row) and insert that number in the place of 1889. Help Please. ~Robert

Columns("L:L").Select
Selection.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:= _
False, SearchFormat:=False).Activate
ActiveCell.Offset(0, 23).Range("A1").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-1889]C:R[-1]C)"

 
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
How 2 sort an autosum total list after adding items 2 autosum item akm Excel Discussion (Misc queries) 0 May 30th 10 11:44 PM
autosum websterk12 Excel Discussion (Misc queries) 1 June 23rd 09 09:06 PM
autosum flowerp Excel Discussion (Misc queries) 1 May 22nd 09 08:37 PM
Getting value of an Autosum Neil Excel Programming 1 February 7th 05 01:10 PM
autosum in VBA Mark Excel Programming 1 November 17th 04 02:54 AM


All times are GMT +1. The time now is 07:00 PM.

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

About Us

"It's about Microsoft Excel"