ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change cell value immediately after a save (https://www.excelbanter.com/excel-programming/273917-re-change-cell-value-immediately-after-save.html)

Bob Phillips[_5_]

Change cell value immediately after a save
 


--

HTH

Bob Phillips

"cam" wrote in message
...
I have this set on a worksheet that initiates a save when
either cell F1 or F2 is changed

Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False
On Error GoTo ws_exit
If Not Intersect(Target, Range("f1:f2")) Is Nothing
Then
ThisWorkbook.Save
End If

ws_exit:
Application.EnableEvents = True
End Sub

After this save I need the values in cells E2 and F2 to be
reset to 0 (the number zero) using code as code changes
for some reason do not initiate the save. I need to
insure the user changes the value in cell E2 and F2 so
that the sheet will save and a RECALL formula I have will
update the running total from input in those 2 cells
[=RECALL(E2)+E2 and =RECALL(F2)+F2] THANKS!!! in advance
for any HELP!





All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com