Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, Probably an easy one for most... I've got a command button and I would like it so when I press it, i calculates the values in cells "D8" and "D9" and puts the total i "D10" Any help would be much appreciated. Thanks -- sunil ----------------------------------------------------------------------- sunil5's Profile: http://www.excelforum.com/member.php...fo&userid=1361 View this thread: http://www.excelforum.com/showthread.php?threadid=38248 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub CommandButton1_Click()
Range("D10").Value = Range("D8").Value + _ Range("D9").Value End Sub -- Regards, Tom Ogilvy "sunil5" wrote in message ... Hi, Probably an easy one for most... I've got a command button and I would like it so when I press it, it calculates the values in cells "D8" and "D9" and puts the total in "D10" Any help would be much appreciated. Thanks. -- sunil5 ------------------------------------------------------------------------ sunil5's Profile: http://www.excelforum.com/member.php...o&userid=13614 View this thread: http://www.excelforum.com/showthread...hreadid=382482 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() In the design mode double click the button and paste this code Private Sub CommandButton1_Click() Range("d10").Value = Range("d8").Value + Range("d9").Value End Sub -- anilsolipuram ------------------------------------------------------------------------ anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271 View this thread: http://www.excelforum.com/showthread...hreadid=382482 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Oh thanks for that- i was trying to use the Range command but not properly. Cheers again :) -- sunil5 ------------------------------------------------------------------------ sunil5's Profile: http://www.excelforum.com/member.php...o&userid=13614 View this thread: http://www.excelforum.com/showthread...hreadid=382482 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy cell by command button | Excel Worksheet Functions | |||
Selective calculate command button & other questions. | Excel Discussion (Misc queries) | |||
How do i clear a cell using a command button? | Excel Discussion (Misc queries) | |||
Command Button for PasteSpecial - Values - Transpose | Excel Discussion (Misc queries) | |||
How I disable a command button until cell has value? | Excel Programming |