Pa help po sana baka pede madagdag to ng automatic n mag piprint pag nag scan ng barcode
current problem po kc is pagmag iiscan kmi ng barcode is automatic lilipat ung active cell sa baba ng cell. which is ang code lng nmin ay activeCell = E1, kaya ang nangyayari ay after mag scan ang magiging active cell n ay blangko.
A1
12 = print data
E1 = lookup value
F1 = # of print
" Current Code
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$E$1" Then
Target.Value = ""
Else
[E1] = ActiveCell
Dim NumCopies As Integer
NumCopies = Range("F1").Value
If NumCopies > 0 Then
ActiveWindow.SelectedSheets.PrintOut Copies:=NumCopies, Collate:=True, IgnorePrintAreas:=False
End If
End If
End Sub
"
current problem po kc is pagmag iiscan kmi ng barcode is automatic lilipat ung active cell sa baba ng cell. which is ang code lng nmin ay activeCell = E1, kaya ang nangyayari ay after mag scan ang magiging active cell n ay blangko.
A1
12 = print dataE1 = lookup value
F1 = # of print
" Current Code
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$E$1" Then
Target.Value = ""
Else
[E1] = ActiveCell
Dim NumCopies As Integer
NumCopies = Range("F1").Value
If NumCopies > 0 Then
ActiveWindow.SelectedSheets.PrintOut Copies:=NumCopies, Collate:=True, IgnorePrintAreas:=False
End If
End If
End Sub
"