I apologize, but I cannot find a formula that pulls during the running of the report. I have looked over the code and view macro items but have not been able to find it. Please assist and help me find it as it needs to be A2 instead of B2. It pulls the following: =IFERROR(VLOOKUP(B2, roster, 3, FALSE),"zzERROR"). Please see below.
Sub Run_Report()
'
' Run_Report Macro
'
' Keyboard Shortcut: Ctrl+r
'
' Below cleans up in brings in raw report
Workbooks.Open Filename:= _
"Report Name location (private)"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Windows("Report Name.xlsm").Activate
Range("A1").Select
ActiveSheet.Paste
Windows("Reference Report Name.xlsx").Activate
Range("A1").Select
ActiveWindow.Close
'Below pulls roster
Workbooks.Open Filename:= _
"Report 2 Name.xlsm"
Sheets("Sheet1").Activate
Columns("A:E").Copy
Windows("Report Name.xlsm").Activate
Sheets("Roster").Range("A1").PasteSpecial xlPasteValues
Range("A1").Select
Sheets("Roster").Range("A2:E1000").ClearFormats
Sheets("Final").Select
Application.CutCopyMode = True
Windows("Report 2 Name.xlsm").Activate
Range("B1").Select
ActiveWindow.Close
Columns("J:K").Select
Selection.Delete Shift:=xlToLeft
'Below sorts specialists alphabetically
With Sheets("Final")
If Not .AutoFilterMode Then .Range("A:J").AutoFilter
.Range("A:J").EntireColumn.AutoFit
.AutoFilter.Sort.SortFields.Clear
.AutoFilter.Sort.SortFields.Add Key _
:=Range("J1:J15000"), SortOn:=xlSortOnValues, Order:=xlAscending, _
DataOption:=xlSortNormal
With .AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End With
End Sub
Sub Macro4()
'
' Macro4 Macro
'
'
With Sheets("Final")
If Not .AutoFilterMode Then .Range("A:J").AutoFilter
.Range("A:J").EntireColumn.AutoFit
.AutoFilter.Sort.SortFields.Clear
.AutoFilter.Sort.SortFields.Add Key _
:=Range("J1:J15000"), SortOn:=xlSortOnValues, Order:=xlAscending, _
DataOption:=xlSortNormal
With .AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End With
End Sub
Bookmarks