I'm working on a workbook with two work sheets. I want on sheet two range ("t3") to be required before user can print sheet two. I want users to be able to print sheet one even if the required cell is blank in sheet two. below is the code i have entered that keeps users from printing both sheets untill required cell is filled in.
Private Sub Workbook_beforeprint(Cancel As Boolean)
If Sheet2.Range("t3") = "" Then
MsgBox "Must Enter Mileage"
Cancel = True
End If
End Sub
Please help..
Private Sub Workbook_beforeprint(Cancel As Boolean)
If Sheet2.Range("t3") = "" Then
MsgBox "Must Enter Mileage"
Cancel = True
End If
End Sub
Please help..