Dim Start, Finish, TotalTime, ProgressRow As Integer, StatusText As String
Sub DoAllFour()
Start = Timer
ProgressRow = 1
StatusMonitor ("Hello! Starting to do my stuff!")
Call ApplyExcludes
Call ApplyBasis
Call ApportionCEC
Call ResetStatusBar
Finish = Timer
TotalTime = Finish - Start
MsgBox "Routine took " & TotalTime / 60 & " minutes"
End Sub
Sub ResetStatusBar()
Application.StatusBar = ""
Application.StatusBar = False
Application.DisplayStatusBar = True
End Sub
Sub StatusMonitor(StatusText)
'Displays text in status bar and records progress in progress sheet
Application.StatusBar = StatusText & " " & Round((Timer - Start) / 60, 2) & " minutes so far"
ProgressRow = ProgressRow + 1
Range("Progress").Offset(ProgressRow, 0) = Application.StatusBar
Range("Progress").Offset(ProgressRow, 1) = Round((Timer - Start) / 60, 2)
End Sub