antoniolouis360
New Member
- Joined
- Oct 13, 2019
- Messages
- 3
Hey guys,
I am wanting to print a label automatically after user scans in barcode in A1. The code I am using is
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
If Intersect(Target, Sheets("Sheet2").Range("A1")) Is Nothing Then Exit Sub
Else
Application.EnableEvents = False
If Len(Target.Value) = 7 Then
ActiveWorkbook.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False
Target.ClearContents
Else
End If
End If
Application.EnableEvents = True[/FONT]
This is not working for me and keeps erroring out. Any help would be appreciated.
I am wanting to print a label automatically after user scans in barcode in A1. The code I am using is
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
If Intersect(Target, Sheets("Sheet2").Range("A1")) Is Nothing Then Exit Sub
Else
Application.EnableEvents = False
If Len(Target.Value) = 7 Then
ActiveWorkbook.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False
Target.ClearContents
Else
End If
End If
Application.EnableEvents = True[/FONT]
This is not working for me and keeps erroring out. Any help would be appreciated.