Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i make the whole y axis label show up it wont show the end | Charts and Charting in Excel | |||
show all button | Excel Discussion (Misc queries) | |||
Macro to show a button? | Excel Discussion (Misc queries) | |||
Show Rows Button | Excel Discussion (Misc queries) | |||
how do I make make my hyperlinks show the email address they are . | Excel Discussion (Misc queries) |