Found this example online:
If I understand this correctly, it declare a bit of work/code using the "i" and then puts the same "i" into the code for Application StatusBar telling the bar what bit of vba to monitor for progress...?
How can this bit of code be changed to be used in my code from this thread:
https://www.mrexcel.com/forum/excel...excel-2016-screen-flickering.html#post5049484
In my code I don't have just 1 line of calulation to monitor, but hundreds of lines doing different things.
My goal is to have a status bar that can monitor each stretch of code namned at the top (7 bits of code), Call ... SumSection, group1, and so on.
Code:
Sub StatusBar()
'Code to monitor in StatusBar
For i = 1 To 10000
Worksheets("Ark1").Cells(i, 1).Value = i
'StatusBar
Application.StatusBar = "Macro is running... Percentage complete is " & Round((i / 10000 * 100), 0) & "%"
Next
'StatusBar End
Application.StatusBar = ""
End Sub
If I understand this correctly, it declare a bit of work/code using the "i" and then puts the same "i" into the code for Application StatusBar telling the bar what bit of vba to monitor for progress...?
How can this bit of code be changed to be used in my code from this thread:
https://www.mrexcel.com/forum/excel...excel-2016-screen-flickering.html#post5049484
In my code I don't have just 1 line of calulation to monitor, but hundreds of lines doing different things.
My goal is to have a status bar that can monitor each stretch of code namned at the top (7 bits of code), Call ... SumSection, group1, and so on.