T
TomK76
I am using MSExcel 2003
I am trying to write an event macro to save the worksheet after someone
enters a number into a given cell. I have two ranges named "TotalYield" and
"Cummulative". The first is a range of 4 merged cells, the second is a range
of single cells.
So far I have:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Target, Me.Range("TotalYield")) Is Nothing
Then
ActiveWorkbook.save
End If
End Sub
But the problem is that the worksheet is saved when the range is selected,
not after an entry is made.
Once I have this working for the TotalYield range, I need to do the same for
the Cummulative range.
Any help would be great. Thanks!
I am trying to write an event macro to save the worksheet after someone
enters a number into a given cell. I have two ranges named "TotalYield" and
"Cummulative". The first is a range of 4 merged cells, the second is a range
of single cells.
So far I have:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Target, Me.Range("TotalYield")) Is Nothing
Then
ActiveWorkbook.save
End If
End Sub
But the problem is that the worksheet is saved when the range is selected,
not after an entry is made.
Once I have this working for the TotalYield range, I need to do the same for
the Cummulative range.
Any help would be great. Thanks!