Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Totaling a range of data

Status
Not open for further replies.

dak413

Technical User
Oct 31, 2005
3
US
I am a beginner user to Visual Basic and am having trouble obtaining a total for a range of data in a single column where the number of rows will changes each time the macro is run? The only formula I can find is for a fixed range:

ActiveCell.FormulaR1C1 = "=SUM(R[-19]C:R[-1]C)"

What would be the alternative to this so that it doesn't have a fixed range to total?
 
are you sure this is a visual basic problem? Sounds a lot like you're talking about an excel spreadsheet. I'm not familiar with the use of "macros" in VB.


Many Thanks!

AMACycle

American Motorcyclist Association
 


dak413,

Please post this in the VBA Visual Basic for Applications (Microsoft) forum707.

Skip,

[glasses] [red]Sign above the facsimile apparatus at the music publisher:[/red]
If it ain't baroque...
Don't FAX it![tongue]
 
I will post it in that forum. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top