For all that are interested.... The solution to my issue was
Code:
If IsEmpty(Range("OrderSummary")) Or IsEmpty(Range("RequestedBy")) Or IsEmpty(Range("POnumber")) Then
MsgBox "Information is Missing:Requested By, Order Summary, and P.O. Require User Input", vbRetryCancel
Exit Sub
End If
So.... I have an UpdateButton Macro assigned to my P.O. Generator, and want it to stop and ensure all fields are filled out prior to update.
Code:
Sub UpdateButton()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("Purchase Order")
Set pasteSheet = Worksheets("PO Log")
copySheet.Range("POnumber").Copy
Leave a comment: