Ideas? statusbar not updating for VBA FUNCTIONS - works OK for VBA SUB

BGExcel56

New Member
Joined
May 5, 2019
Messages
2
I am trying to send a progress message from a custom VBA function - I get no errors, just never see the messages on the status bar. I have stepped through the function and confirmed the display command is executing. I can run a SUB from this same workbook/module and see the status bar updated.

Any ideas on what I can try to fix this are appreciated. Section of code below
(NOTE: I added the "DEBUG" status bar message to drive the message for each instance of the function being performed... also, Application.Displaystatusbar = False is not clearing the statusbar. It is almost as if all status bar functions are being ignored)
Thanks

Application.DisplayStatusBar = False
Application.DisplayStatusBar = True

Dim lngRow As Long
Dim intMod As Integer

lngRow = Application.Caller.Row
Application.StatusBar = "DEBUG:" & lngRow
intMod = lngRow Mod 500
Application.StatusBar = "Progress: " & lngRow & "/" & intMod
If intMod = 0 Then
Application.StatusBar = lngRow
End If
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
to return status bar to normal reporting use application.statusbar = "" as you exit the sub
 
Upvote 0
Thanks for your reply - I finally came across a thread in a different forum that seems to confirm that displaying the status bar from a UDF (User Defined Function) does not work (which sort of makes sense). I'll need to redesign my approach any way as the performance of the current design is not sustainable.
Thanks again
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top