Disable 'trial problem' in status bar when using solver in VBA

squidy

New Member
Joined
May 13, 2011
Messages
1
Application.StatusBar = True

DoEvents
Application.StatusBar = Format(k / runs, "0.00%") & " Complete. " & k & " / " & runs

Basically, the code above appears in parts of my code. I'm doing a lengthy simulation using excel vba and i'm trying to use the status bar updates to track the progress of the code. The problem is the status bar update is 'hidden' (i.e. flickers for a brief second) behind the solver status updates 'trial solution: 1 Set Cell: 0.0487' etc etc as part of the simulation involves optimizing a certain parameter. I hope you get my meaning. I'm trying to find a way to disable the 'trial solution' bit from appearing of forcing the status update as above to always display on top of anything else.

The above code works perfectly in a separate piece of work i did. But in that separate work, I was not using any solver and the status bar would display 5.00% Complete and update as the program progressed.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,513
Messages
6,179,212
Members
452,895
Latest member
BILLING GUY

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