Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Totaling
Hello from Steved
Please how does one tell Cell G9 to add Cells G6 and G7 minus G8 to give the answer in Visual Basic Application. Thankyou. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Totaling
Not too hard... Sub AddThemUp() Dim dblAnswer As Double dblAnswer = Range("G6").Value + Range("G7").Value - Range("G8").Value Range("G9").Value = dblAnswer End Sub -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware (Excel Add-ins / Excel Programming) "Steved" wrote in message Hello from Steved Please how does one tell Cell G9 to add Cells G6 and G7 minus G8 to give the answer in Visual Basic Application. Thankyou. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Totaling
Here's another way:
Sub AddThemUp1() Range("G9").Formula = "=Sum(G6,G7,-G8)" End Sub "Steved" wrote in message ... Hello from Steved Please how does one tell Cell G9 to add Cells G6 and G7 minus G8 to give the answer in Visual Basic Application. Thankyou. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Totaling
Hello from Steved
I thankyou Both. "Steved" wrote: Hello from Steved Please how does one tell Cell G9 to add Cells G6 and G7 minus G8 to give the answer in Visual Basic Application. Thankyou. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
totaling $$ | Excel Discussion (Misc queries) | |||
Sub-Totaling | Excel Discussion (Misc queries) | |||
Sub-Totaling | Excel Worksheet Functions | |||
totaling to a different sheet | Excel Discussion (Misc queries) | |||
Help with totaling a columns in VBA | Excel Programming |