Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default userform summary

I am trying to make an annual financial summary on a
userform which flashes up when the user double clicks.

I can do everything i need except sum a list of prices in
one column so i can display it in a label on the userform.

I know that this should be very simple but i just can't
get it to sum column a sheet2, i assumed it would be
something like....

Tots = Sum("a1:a33")
Label3.Caption = Tots

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default userform summary

Hi

Try

Dim Tots As Double
Dim myRange As Range
Set myRange = Worksheets(1).Range("A1:A33")
Tots = Application.Sum(myRange)
Label3.Caption = Tots

--
HTH. Best wishes Harald
Followup to newsgroup only please

"jonny" skrev i melding
...
I am trying to make an annual financial summary on a
userform which flashes up when the user double clicks.

I can do everything i need except sum a list of prices in
one column so i can display it in a label on the userform.

I know that this should be very simple but i just can't
get it to sum column a sheet2, i assumed it would be
something like....

Tots = Sum("a1:a33")
Label3.Caption = Tots

TIA



Reply
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
Summary help! ml Excel Worksheet Functions 3 July 24th 08 07:12 PM
Summary Dale Excel Worksheet Functions 7 February 20th 07 10:26 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 2 November 7th 05 03:30 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 1 November 1st 05 08:50 PM
Summary Help Michael168[_63_] Excel Programming 0 November 13th 03 09:21 AM


All times are GMT +1. The time now is 12:24 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"