Rather than using the .Select or . Activate function that would slow the code down, and have your screen jump from sheet to sheet, try this;
Sub NextOrder()
Dim lr As Long
Dim c As String
With Sheets("JOB DATABASE")
lr = .Cells(Rows.Count, "B").End(xlUp).Row
c = "Job " & lr
.Cells(lr + 1, 2) = c
End With
With Sheets("ORDER FORM")
.Range("C3") = c
End With
End Sub
I'm guessing there will be more to this code, so also include;
Application.ScreenUpdating
as part of your final code.
It would be inserted in this manner;
Sub NextOrder()
Dim lr As Long
Dim c As String
Application.ScreenUpdating = False
With Sheets("JOB DATABASE")
lr = .Cells(Rows.Count, "B").End(xlUp).Row
c = "Job " & lr
.Cells(lr + 1, 2) = c
End With
With Sheets("ORDER FORM")
.Range("C3") = c
End With
Application.ScreenUpdating = True
End Sub
Bookmarks