Sub InitializeRanges()
' **********************************************************************************
' FINDS THE LAST ROW OF DATA AND INITIALIZES THE LIST LENGTH
Dim OrigBudCol As Integer
Dim OrigBudColRange As Range
' UnhideColumns
Set OrigBudColRange = ThisWorkbook.ActiveSheet.Range("A:Z").Find(What:="Original Budget", After:=ThisWorkbook.ActiveSheet.Range("A:A").Cells(1), LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False)
If OrigBudColRange Is Nothing Then
Dim intAns As Integer
MsgBox "An error message will pop up when this window closes" _
& Chr(13) & "because the code can't find the 'Original Budget' column." _
& Chr(13) & "Please unhide this column and try again.", vbOKOnly, "Error Coming"
End If
OrigBudCol = OrigBudColRange.Column
ListLength = (Cells(1000, OrigBudCol).End(xlUp).Row) + 10
' **********************************************************************************
Set Pipeline = ActiveSheet.Range(Cells(5, "A"), Cells(ListLength, "A"))
Set CREProjNum = ActiveSheet.Range(Cells(5, "B"), Cells(ListLength, "B"))
Set PropID = ActiveSheet.Range(Cells(5, "C"), Cells(ListLength, "C"))
Set CKPProjNum = ActiveSheet.Range(Cells(5, "D"), Cells(ListLength, "D"))
Set Bldg = ActiveSheet.Range(Cells(5, "E"), Cells(ListLength, "E"))
Set ProjName = ActiveSheet.Range(Cells(5, "F"), Cells(ListLength, "F"))
Set ApprovalYear = ActiveSheet.Range(Cells(5, "G"), Cells(ListLength, "G"))
Set CapCats = ActiveSheet.Range(Cells(5, "H"), Cells(ListLength, "P"))
Set ProfFeesLessCKP = ActiveSheet.Range(Cells(5, "J"), Cells(ListLength, "J"))
Set CKPMgmtFee = ActiveSheet.Range(Cells(5, "K"), Cells(ListLength, "K")) '********************
Set ProjExp = ActiveSheet.Range(Cells(5, "R"), Cells(ListLength, "R"))
Set OriginalBudget = ActiveSheet.Range(Cells(5, "S"), Cells(ListLength, "S"))
Set Approvals = ActiveSheet.Range(Cells(5, "T"), Cells(ListLength, "V"))
Set ProjectedApproveDate = ActiveSheet.Range(Cells(5, "T"), Cells(ListLength, "T"))
Set DateWkbkSubmitted = ActiveSheet.Range(Cells(5, "U"), Cells(ListLength, "U"))
Set TargetDate = ActiveSheet.Range(Cells(5, "W"), Cells(ListLength, "W"))
Set PSUBudget = ActiveSheet.Range(Cells(5, "X"), Cells(ListLength, "X"))
Set ActProjDetail = ActiveSheet.Range(Cells(5, "X"), Cells(ListLength, "AD"))
Set WorkStatus = ActiveSheet.Range(Cells(5, "AC"), Cells(ListLength, "AC"))
Set ProjStatus = ActiveSheet.Range(Cells(5, "AD"), Cells(ListLength, "AD"))
Set FundingSource = ActiveSheet.Range(Cells(5, "AE"), Cells(ListLength, "AE"))
Set Accountabilities = ActiveSheet.Range(Cells(5, "AF"), Cells(ListLength, "AG"))
Set Scope = ActiveSheet.Range(Cells(5, "AH"), Cells(ListLength, "AH"))
Set Justification = ActiveSheet.Range(Cells(5, "AI"), Cells(ListLength, "AI"))
Set Comments = ActiveSheet.Range(Cells(5, "AJ"), Cells(ListLength, "AJ"))
Set Priority = ActiveSheet.Range(Cells(5, "AK"), Cells(ListLength, "AK"))
End Sub