I'v got a private sub for a worksheet change that looks up to see if values are blank which decides if the user can do a change or not.
Heres my code so far:
I want to insert a code after the msgbox that returns the value back to the value before the change?
or do i have to set up a worksheet_selectionchange macro too?
Really appreciate the help
Thanks
Shaun
Heres my code so far:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Then Exit Sub
If WorksheetFunction.CountA(Sheets("Order Form").Range("C7", "I300")) = 0 Then
Exit Sub
Else
MsgBox "Cant Change Products Through The Week"
End If
End Sub
or do i have to set up a worksheet_selectionchange macro too?
Really appreciate the help
Thanks
Shaun