hi
something like this might work....
Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Range("B14").Value = "" Then
Cancel = True
MsgBox "you must fill in B14 before printing"
End If
End Sub
this is ThisWorkbook code. to use...
press Alt+F11. in the project window(far left), expand your project(file).
then expand excel objects(if needed)
scroll down and double click ThisWorkbook.
in the code window(far right), select workbook from the upper right combo box.
paste the above code in.
Regards
FSt1
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.