You can try something like
If Range("A1").Value = "" Then Exit Sub
'rest of your macro
Which checks the value of cell A1 and, if it is blank (="") then it stops the macro.
Does this help you out?
BarrieBarrie Davidson
Thanks
Is it possible to get an error message like "please enter data in date feild" before it shuts down?
Lewis
Sure, in fact let's make it better by placing the user in that cell. This code will do that.
If Range("A1").Value = "" Then
MsgBox prompt:="Please enter data in date feild", Buttons:=vbOKOnly + vbCritical
Range("A1").Select
Exit Sub
End If
Regards,
BarrieBarrie Davidson