Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How can I add values in 2 cells using a command button

How can I add values in 2 cells using a command button
Example - Values in A1 and A2 to be added and shown in A3 at the click of a
command button (ADD) which is inserted from the tools box.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 222
Default How can I add values in 2 cells using a command button

The simplest way would be to assign a macro to your button such as:-

Sub Button1_Click()
Range("A3") = Range("A1") + Range("A2")
End Sub


"Dr.H.Subramanian" wrote:

How can I add values in 2 cells using a command button
Example - Values in A1 and A2 to be added and shown in A3 at the click of a
command button (ADD) which is inserted from the tools box.

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
Command Button for PasteSpecial - Values - Transpose Alisha Excel Discussion (Misc queries) 0 March 10th 06 09:39 PM
How can I add values in 2 cells using a command button Dr.H.Subramanian[_2_] Excel Programming 1 July 17th 05 07:21 AM
sum cells using command button ADD Dr.H.Subramanian[_2_] Excel Programming 1 July 14th 05 03:45 PM
command button to calculate two cell values? sunil5 Excel Programming 3 June 27th 05 03:34 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 10:03 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"