Vba status bar stops updating

Posted by / 23-Mar-2015 10:43

Setting that to False means Excel has control and updates it like normal, setting it to any other string displays that string, and Excel no longer has control.

So, again, my question is, if I hide the status bar, is it still updating?

To add a VBA Progress Bar to your Visual Basic for Applications macro read my post here.

The VBA Status Bar is a panel that appears at the bottom of your Excel (or Access) Workbook.

In fact, trying manual calculation slowed down the program noticeably, took around 120% of previous time.

First the macro code: Public Declare Function snd Play Sound32 Lib "winmm.dll" Alias "snd Play Sound A" (By Val lpsz Sound Name As String, By Val u Flags As Long) As Long Public Declare Function snd Play Sound32 Lib "winmm.dll" Alias "snd Play Sound A" (By Val lpsz Sound Name As String, By Val u Flags As Long) As Long Public stop Playing As Boolean Sub Some Macro() Dim uf As Alarm Form, start Time As Double, exec Time As Double Set uf = New Alarm Form stop Playing = False start Time = Timer '... Sub Some Macro() Dim start Time As Double, exec Time As Double, body as String start Time = Timer '... exec Time = Timer - start Time body = "" & Time Serial(Round(exec Time / 3600, 0), _ Round((exec Time - Round(exec Time / 3600, 0) * 3600) / 60), _ exec Time - Round(exec Time / 3600, 0) * 3600 - Round((exec Time - Round(exec Time / 3600, 0) * 3600) / 60) * 60) Call Send Email From Outlook(body , "VBA Macro Completed!

Status Bar = False ''//Return control of the Status bar to Excel Application.

Screen Updating = True ''//Turn on screen updating End Sub Text boxes in worksheets are sometimes not updated when their text or formatting is changed, and even the Do Event command does not help.

It seems the second option might be better for speeding up code, i.e., Application.

Status Bar = "Not updating" and then back to normal after the program is over. If you are doing a bunch of calculations, or altering a bunch of calculations, you may just want to turn the autocalc function off at the beginning of your code, and at the end of your code force a calculation and turn the autocalculation back on. I know about turning calculation off and it doesn't help in this program because it needs to do calculations often.

vba status bar stops updating-65vba status bar stops updating-67vba status bar stops updating-61

Display Status Bar = True ''//Make sure that the statusbar is visible For i = 1 To i Max ''// imax is usually 30 or so fraction Done = CDbl(i) / CDbl(i Max) Application.

One thought on “vba status bar stops updating”