I ran into something I've not seen before, Application.ScreenUpdating = False
, causing a sub to slightly misbehave. It doesn't throw an error, but it causes an off by one error in the result when turned on.
Try
'Globals.ThisWorkbook.Application.ScreenUpdating = False
'if this on sub behaves unexpectedly
For n = 13 To Globals.ThisWorkbook.Worksheets.Count
Globals.ThisWorkbook.Worksheets(n).Activate()
Call ESLAUpdateReportPosition(True)
Next
'Globals.ThisWorkbook.Application.ScreenUpdating = True
Catch ex As Exception
'...Error Handling
End Try
Again, no exception is thrown, the outcome of the is just slightly wrong. The place where I suspect it is breaking within the methods is:
SumCount1 = CurrentSheet.Cells(2, 6).value