Hi all i will give an Excel Document
for the user with some basic information as follows
Now if the user leaves a cell which is required i would like to prompt him a message saying that it is a required value with in the excel.
I have referred to some articles
But i am unable to achieve what I required so can any one help. Also I would like to know is it possible to apply Regular expression validators
with in the Excel
. Something like Date format
should be mm/dd/yyyy
and SSN
should be 9 digited
like that..
I tried some thing like but this didn't prompt me any error or Dialog
Private Sub Worksheet_BeforeSave(Cancel As Boolean)
If Sheet1.Range("A3:B3").Value = "" Then
Application.EnableEvents = True
MsgBox "Cannot print until required cells have been completed!"
Cancel = True
End If
End Sub