+ Reply to Thread
Results 1 to 6 of 6

How can I turn off the Solver status messages on the Excel status bar?

  1. #1
    Registered User
    Join Date
    07-31-2008
    Location
    Australia
    Posts
    12

    How can I turn off the Solver status messages on the Excel status bar?

    I've written Excel VBA code to do some calculations. The code uses the Application.StatusBar property to write various messages and data to the Excel status bar. That part is working fine.

    The VBA code also calls the Excel Solver add-in. The Solver also writes its status messages to the Excel status bar. That part is also working fine.
    Unfortunately, the VBA messages are being disrupted (covered up) by the Solver messages.

    I'm trying to prevent the Solver messages from being displayed as they serve no immediate purpose in the program's operation and they cause the VBA messages to be hidden. So far, I haven't found a solution to stop the display of the Solver messages.

    Is there a way to prevent the Solver messages appearing on the status bar so that the VBA messages can be displayed without being disrupted by the Solver messages?

    Thanks for any advice.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: How can I turn off the Solver status messages on the Excel status bar?

    The command "SolverSolve" could be the problem, normally it's written as
    Please Login or Register  to view this content.
    if this is what use in your macro you could try testing
    Please Login or Register  to view this content.
    to see if this helps.

    An alternative could be to turn of the status bar before the "SolverSolve" command
    Please Login or Register  to view this content.
    and then turn it on again after the solver run
    Please Login or Register  to view this content.
    Alf
    Last edited by Alf; 03-20-2024 at 12:54 AM.

  3. #3
    Registered User
    Join Date
    07-31-2008
    Location
    Australia
    Posts
    12

    Re: How can I turn off the Solver status messages on the Excel status bar?

    Thanks for your assistance.
    I changed the Solver call line per your suggestion, but unfortunately the Solver status message remained as before.
    I'd appreciate any further thoughts I could try.
    Graeme

  4. #4
    Registered User
    Join Date
    07-31-2008
    Location
    Australia
    Posts
    12

    Re: How can I turn off the Solver status messages on the Excel status bar?

    Thank you for your suggestion Alf.
    I have previously tried turning off the status bar before calling the Solver then turning it back on after the Solver call, and while it does prevent the Solver messages being displayed, removing and then reinstating the status bar creates its own visual impact (annoyance?) as the Excel window reconfigures itself at each turn-off and each turn-on of the status bar. Also, the VBA messages are being hidden while ever the status bar is turned off.

    In summary, I'm still hoping there is a way to keep the status bar showing at all times so the VBA messages can always be seen, while preventing the display of the Solver messages.

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: How can I turn off the Solver status messages on the Excel status bar?

    The makers of solver https://www.frontlinesystems.com/
    could perhaps be of help?

    Removed my comments about testing OpenSolver as this program writes more info to the status bar than the excel solver.

    Alf
    Last edited by Alf; 03-21-2024 at 08:43 AM.

  6. #6
    Registered User
    Join Date
    07-31-2008
    Location
    Australia
    Posts
    12

    Re: How can I turn off the Solver status messages on the Excel status bar?

    I'll try Frontline Systems.
    Thank you for your advice.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Display multiple messages in status bar while macro is running
    By SteveTheFish in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2015, 03:07 AM
  2. Replies: 3
    Last Post: 09-11-2014, 04:32 PM
  3. How to Email speicifc messages based off column result status
    By sstendahl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2013, 04:35 AM
  4. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  5. Replies: 1
    Last Post: 06-01-2006, 01:15 PM
  6. Turn off printing status dialog with Excel automation
    By gerhard in forum Excel General
    Replies: 0
    Last Post: 03-22-2005, 04:20 AM
  7. Turn off printing status dialog with Excel automation
    By gm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2005, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1