Carl_upnorth
New Member
- Joined
- Feb 24, 2023
- Messages
- 4
- Office Version
- 2013
- Platform
- Windows
I have looked across the different forums to find an instance of what I need to accomplish, but alas have come up null.
Situation:
We manually (with ink pen) fill out shipping bills of lading (BOL) each is a three-part form that comes from the print house sequenced with serial numbers, each three-part form has a unique serial.
I have created a form for excel that greatly simplifies the manual task, but it is unusable until I can get it to serial sequence each unique BOL with a unique serial. It would be useful in a department with 10 individuals at separate computers using the master file to open the BOL at their desk to use the InputBox to enter their ID #. The bills do not need to sequence incrementally from the previous days numbers due to the following logic.
Serial number format: 230560100; where 23 is the current year, 056 is the Julian date, 01 is the employee ID, 00 is the first three-part bill of the day (01 is the next) under their ID. Each employee enters their ID, and if they close the file and reopen later that day an InputBox asks what the previous bills' last two digits was (this input changes at midnight to 00 with the date). We do not save electronic copies of the bills, only paper copy is retained.
Found the following but do not know how to rewrite to accomplish the above.
***********************
this one from extendoffice.com
This one gives the pop-up window which is nice but do not want to number each copy of same in sequence.
******************
********************************************************
below: your oringinal post Aug 26, 2010
Like this as it numbers each seperate bill in sequence.
**********
Situation:
We manually (with ink pen) fill out shipping bills of lading (BOL) each is a three-part form that comes from the print house sequenced with serial numbers, each three-part form has a unique serial.
I have created a form for excel that greatly simplifies the manual task, but it is unusable until I can get it to serial sequence each unique BOL with a unique serial. It would be useful in a department with 10 individuals at separate computers using the master file to open the BOL at their desk to use the InputBox to enter their ID #. The bills do not need to sequence incrementally from the previous days numbers due to the following logic.
Serial number format: 230560100; where 23 is the current year, 056 is the Julian date, 01 is the employee ID, 00 is the first three-part bill of the day (01 is the next) under their ID. Each employee enters their ID, and if they close the file and reopen later that day an InputBox asks what the previous bills' last two digits was (this input changes at midnight to 00 with the date). We do not save electronic copies of the bills, only paper copy is retained.
Found the following but do not know how to rewrite to accomplish the above.
***********************
this one from extendoffice.com
This one gives the pop-up window which is nice but do not want to number each copy of same in sequence.
******************
VBA Code:
Sub IncrementPrint()
'updateby Extendoffice
Dim xCount As Variant
Dim xScreen As Boolean
Dim I As Long
On Error Resume Next
LInput:
xCount = Application.InputBox("Please enter the number of copies you want to print:", "Kutools for Excel")
If TypeName(xCount) = "Boolean" Then Exit Sub
If (xCount = "") Or (Not IsNumeric(xCount)) Or (xCount < 1) Then
MsgBox "error entered, please enter again", vbInformation, "Kutools for Excel"
GoTo LInput
Else
xScreen = Application.ScreenUpdating
Application.ScreenUpdating = False
For I = 1 To xCount
ActiveSheet.Range("A1").Value = " Company-00" & I
ActiveSheet.PrintOut
Next
ActiveSheet.Range("A1").ClearContents
Application.ScreenUpdating = xScreen
End If
End Sub
********************************************************
below: your oringinal post Aug 26, 2010
Like this as it numbers each seperate bill in sequence.
**********
VBA Code:
Sub PrintJobs()
Dim i As Long, startnum As Long, lastnum As Long
startnum = Application.InputBox("Enter the first job number to be printed", "Print Job Number", 1, , , , , 1)
lastnum = Application.InputBox("Enter the last job number to be printed", "Print Job Number", 1, , , , , 1)
For i = startnum To lastnum
Range("B1").Value = i
ActiveWindow.SelectedSheets.PrintOut copies:=2
Next
End Sub
Last edited by a moderator: