P
Prometheus
I have a spreadsheet in which I'm trying to prevent users fro
accidentally modifying cells containing formulas. On occasion
however, they will need to manually input data instead of allowing th
formula to calculate. Using info found on this forum I put
Code
-------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const WS_RANGE As String = "D9:O9"
On Error Resume Next
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Application.ScreenUpdating = False
frmChange.Show
Application.ScreenUpdating = True
End If
End Sub
-------------------
into the worksheet. frmChange.Show asks the user if s/he would like t
change the contents of the cell and contains
Code
-------------------
Private Sub cmdNo_Click()
ActiveCell.Offset(1, 0).Select
Unload Me
End Sub
Private Sub cmdYes_Click()
ActiveCell.ClearContents
Unload Me
End Sub
Code
accidentally modifying cells containing formulas. On occasion
however, they will need to manually input data instead of allowing th
formula to calculate. Using info found on this forum I put
Code
-------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const WS_RANGE As String = "D9:O9"
On Error Resume Next
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Application.ScreenUpdating = False
frmChange.Show
Application.ScreenUpdating = True
End If
End Sub
-------------------
into the worksheet. frmChange.Show asks the user if s/he would like t
change the contents of the cell and contains
Code
-------------------
Private Sub cmdNo_Click()
ActiveCell.Offset(1, 0).Select
Unload Me
End Sub
Private Sub cmdYes_Click()
ActiveCell.ClearContents
Unload Me
End Sub
Code