Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default sum cells using command button ADD

How to add values in a1,a2 and a3 cells and to show the result in a4 only by
clicking a command button inserted from the tools box. I want the simple
codes step by step.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default sum cells using command button ADD

In design mode, double-click on the button, and in the window that appears, put the code

Private Sub CommandButton1_Click() ' This may have number other than 1 appended
Range("A4").Value = Application.Sum(Range("A1:A3"))
End Sub

HTH,
Bernie
MS Excel MVP


"Dr.H.Subramanian" wrote in message
...
How to add values in a1,a2 and a3 cells and to show the result in a4 only by
clicking a command button inserted from the tools box. I want the simple
codes step by step.



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
print 20 cells with a command button [email protected] Excel Discussion (Misc queries) 5 February 3rd 08 05:57 PM
Using Command Button to copy cells Pennington Excel Discussion (Misc queries) 1 April 29th 05 02:30 AM
Deleting some cells in a row using command button and offset Marvin Excel Programming 3 April 6th 04 02:36 AM
Limiting the cells a command button can change Matt Excel Programming 1 February 3rd 04 03:02 PM
Non Working Cells after command button rlgh60 Excel Programming 1 November 6th 03 11:01 PM


All times are GMT +1. The time now is 05:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"