Private Sub app_WorkbookOpen(ByVal WB As Workbook)
WBC = Application.Workbooks.COUNT
Dim JOBNUM As Integer, JROW As Integer
If WBC < 3 Then Exit Sub
'If ActiveWorkbook.ActiveSheet.Range("B4") = "LAYOUT" Then GoTo Skip
'Dim WB As Workbook
On Error Resume Next
Set WB = Workbooks(Year(Date) & " Com Forecast (544).xlsm")
If Err Then Exit Sub 'MsgBox "The workbook is not open"
If WB.Worksheets("START DATE").Range("R7") = False Then Exit Sub
On Error GoTo 0
Skip:
'If ActiveWorkbook.ActiveSheet.Range("B4") = "LAYOUT" Then Call SAVE_COLORPOS
If ActiveWorkbook.ActiveSheet.Range("K2") = "Person In Charge" Then Call COPYPREP_COPY
If ActiveWorkbook.ActiveSheet.Range("B1") = "COMMERCIAL DISTRIBUTION INFORMATION REPORT" Then Call DIST_COPYPREP_COPY
If ActiveWorkbook.ActiveSheet.Range("B4") = "Commercial Billing Sheet" Or ActiveWorkbook.ActiveSheet.Range("D21") = "Sold To:" Then
Application.Windows.Arrange ArrangeStyle:=xlHorizontal
If Range("A3") = "" Then GoTo Getout
JOBNUM = Range("A3").Value
WB.Activate
JROW = Application.Match(JOBNUM, WB.Worksheets("YTD").Range("E:E"), 0) - 2
ActiveWindow.ScrollRow = JROW
End If
Getout:
End Sub