Hi guys,
I have a print button which prints VBA PrintID1 but if in cell J:J contains the word EXP I want to run VBA PrintEXPForm. How would I do this?
Thank you
I have a print button which prints VBA PrintID1 but if in cell J:J contains the word EXP I want to run VBA PrintEXPForm. How would I do this?
VBA Code:
Sub PrintID1()
Dim Ref
Ref = Sheets("Goods-In").Range("AV6").Value
Application.ScreenUpdating = False
With Sheets("BRCodeCheck")
.Visible = True
.PrintOut Copies:=1, Collate:=True
.Visible = False
End With
Application.ScreenUpdating = False
MsgBox "Label Form Printed >" & Ref
Call ClearGI
End Sub
VBA Code:
Sub PrintEXPForm()
'EXCEPTIONPRODS - Prints EXP label form
Dim Ref
Ref = Sheets("ExceptionProds").Range("B4").Value
Application.ScreenUpdating = False
With Sheets("BRCodeCheckExp")
.Visible = True
.PrintOut Copies:=1, Collate:=True
.Visible = False
End With
MsgBox "Label Form Printed >" & Ref
Call ClearSup2
End Sub
Thank you