Computing.Net > Forums > Programming > VBA excel sum moving range

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBA excel sum moving range

Reply to Message Icon

Name: stevebriz
Date: January 3, 2006 at 05:30:23 Pacific
OS: XP professional
CPU/Ram: Pent M
Comment:

Can any one please help me with this.
I have a range that I would like to sum but am having trouble with getting it to work.
I set up 2 strings
where by the first cell of the range is
"firstcell1" and the last cell is "lastcell1"
I want my total to be
mytotal = sum("firstcell1":"lastcell1")
can someplease help me with this



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: January 4, 2006 at 01:44:43 Pacific
Reply:

The contents of the first cell of the range should not be 'firstcell1', but rather labelled or named 'firstcell1'. Similarly the contents of the last cell should not be 'lastcell1', but rather labelled or named 'lastcell1'.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VBA excel sum moving range

VBA (Excel) Editing Cells www.computing.net/answers/programming/vba-excel-editing-cells/4698.html

VBA/Excel Dynamic cell reference www.computing.net/answers/programming/vbaexcel-dynamic-cell-reference/15585.html

VBA Excel Help Required! www.computing.net/answers/programming/vba-excel-help-required/7237.html