Display warning message but allow to continue

jwasten

Board Regular
Joined
May 29, 2002
Messages
90
I have a method to check certain cells in a worksheet to be sure they are populated before the user can save and/or deactivate the worksheet. If those cells are not populated, a message is displayed AND the user is not allowed to continue until corrective action is taken.

Is there a way to only display a message if a certain value (zero) is in a cell but allow the user to continue and possibly save or deactivate the worksheet? (I'm already using the validation input message field for all these cells.)

Thanks!
 
If your not opposed to vba

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error Resume Next
If [A1] = 0 Then
MsgBox "Are you sure you want to leave this at 0?,vbOKOnly
End If
On Error GoTo 0
End Sub

HTH
James
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,216,190
Messages
6,129,422
Members
449,509
Latest member
ajbooisen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top