Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I believe you would have to include a public, module level variable in the
worksheet module to hold the current value. This code goes in the Sheet1 module Public A1Value As Double Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$A$1" Then A1Value = A1Value + Target.Value Application.EnableEvents = False Target.Value = A1Value Application.EnableEvents = True End If End Sub and this in the ThisWorkbook module Private Sub Workbook_Open() A1Value = Worksheets("Sheet1").Range("A1").Value End Sub On Fri, 19 Nov 2004 08:46:04 -0600, marksuza wrote: Hi again, I dont know if the code I inputed in my first message was the most appropriate, or if that diverted from the real problem. Basically, I want to input a number in a cell and add the number I input to the previous number that was in that cell. Thanks again. Marcos |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Circular reference help | Excel Discussion (Misc queries) | |||
circular reference | Excel Worksheet Functions | |||
circular reference | Excel Discussion (Misc queries) | |||
Circular Reference | Excel Worksheet Functions | |||
Circular Reference | Excel Programming |