Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Please help: How to make a button to show the sum?

hi,

In my excel, I would like to make a button which could show the sum o
certain cells, say, E3 to E6, after pressing it. I am wondering if i
is made by VBA? If yes, how?

I would very much appreciate your help if you could help me figure ou
this problem

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Please help: How to make a button to show the sum?

If you select two or more cells that contain numbers, you can see the
sum in the status bar, at the bottom right of the Excel window.

Right-click on the AutoCalculate area of the status bar, and you can
choose from a list of summary functions.

raymondinuk < wrote:
hi,

In my excel, I would like to make a button which could show the sum of
certain cells, say, E3 to E6, after pressing it. I am wondering if it
is made by VBA? If yes, how?

I would very much appreciate your help if you could help me figure out
this problem.


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Please help: How to make a button to show the sum?

Dear Debra,

Thank you for your prompt answer. I have learned another skill fro
your answer but I am afraid I didn't make my problem clear.

What I want to do is to put a button on the worksheet name
"calculate". After pressing this button, I want a dialogue box to po
up and show the sume of certain cells. I think this may need VBA o
macro but I don't know how to figure it out. Need your help again.

Many thanks.

Debra Dalgleish wrote:
*If you select two or more cells that contain numbers, you can se
the
sum in the status bar, at the bottom right of the Excel window.

Right-click on the AutoCalculate area of the status bar, and you can
choose from a list of summary functions.
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Please help: How to make a button to show the sum?

You could use a macro like this:

Sub SumCells()
MsgBox WorksheetFunction.Sum(Range("E3:E6"))
End Sub

raymondinuk < wrote:
Dear Debra,

Thank you for your prompt answer. I have learned another skill from
your answer but I am afraid I didn't make my problem clear.

What I want to do is to put a button on the worksheet named
"calculate". After pressing this button, I want a dialogue box to pop
up and show the sume of certain cells. I think this may need VBA or
macro but I don't know how to figure it out. Need your help again.

Many thanks.

Debra Dalgleish wrote:

*If you select two or more cells that contain numbers, you can see
the
sum in the status bar, at the bottom right of the Excel window.

Right-click on the AutoCalculate area of the status bar, and you can
choose from a list of summary functions.
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html *




---
Message posted from http://www.ExcelForum.com/



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Please help: How to make a button to show the sum?

Thank you very much, Debra

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Please help: How to make a button to show the sum?

raymond

Alternate with non hard-coded selection.

Sub Sum_Range()
Set rng = Selection
MsgBox WorksheetFunction.Sum(rng)
End Sub

Gord Dibben Excel MVP

On Tue, 25 May 2004 08:39:54 -0500, raymondinuk
wrote:

Thank you very much, Debra.


---
Message posted from http://www.ExcelForum.com/


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
How do i make the whole y axis label show up it wont show the end Jordan Charts and Charting in Excel 1 November 24th 07 06:07 AM
show all button Derwood Excel Discussion (Misc queries) 10 February 1st 07 02:52 PM
Macro to show a button? Steach91 Excel Discussion (Misc queries) 3 June 22nd 06 07:21 PM
Show Rows Button sjschmidtky Excel Discussion (Misc queries) 3 June 30th 05 09:36 PM
how do I make make my hyperlinks show the email address they are . Dustin Excel Discussion (Misc queries) 0 January 13th 05 01:39 AM


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