Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
No you need VBA
Option Explicit Private prev Private Sub Worksheet_Change(ByVal Target As Range) Const WS_RANGE As String = "H10" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target .Value = .Value + prev prev = .Value End With End If ws_exit: Application.EnableEvents = True End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) prev = Target.Value End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Ross" wrote in message ... Hi, Does anyone know of a formula, or similar, that can be used which would allow the user to simply type in the number to be added into the cell say "2" and it will add this number onto the number previously in the cell (assume"3") giving a new total of "5". Thanks, R |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Forumla | Excel Discussion (Misc queries) | |||
Help with Forumla | Excel Worksheet Functions | |||
IF Forumla help | Excel Discussion (Misc queries) | |||
Forumla Help | Excel Discussion (Misc queries) | |||
Forumla | Excel Worksheet Functions |