Im trying to create a job number generater.
I have the following code:
Dim NextNum As Long
NextNum = Application.WorksheetFunction.Max(Sheet1.UsedRange.Columns(1))
Me.txtjobno.Value = NextNum
Me.txtjobno.Enabled = False
Anybody know how I can get the program to remember the last number issued and continue on from the next sequential number even after being closed and reopened???
Also I want it to start at 1 and not at 0
I have the following code:
Dim NextNum As Long
NextNum = Application.WorksheetFunction.Max(Sheet1.UsedRange.Columns(1))
Me.txtjobno.Value = NextNum
Me.txtjobno.Enabled = False
Anybody know how I can get the program to remember the last number issued and continue on from the next sequential number even after being closed and reopened???
Also I want it to start at 1 and not at 0