Results 1 to 9 of 9

Thread: Excel showing "Not responding"

  1. #1
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14

    Excel showing "Not responding"

    If I do very time consuming calculations (by VBA code) - then after very little time - Excel shows "Not responding". I get around that by having a counter - and then updating my application.statusbar property with a counter in brackets - so now it no longer give me the "Not responding message". So that is all good - however after 2 hours of so the statusbar stops updating - I simply get the circular "hourglass" - I can see that the application is still running (using windows 7 - can place my mouse on the taskbar on the buttom and it shows "running") - so if I let it keep on trucking - it will eventualy finish. I also know my application is still running by using Ctrl+Break - then debug. If I force the application.statusbar - then it become active again.
    Any idea how I can force the application.statusbar to remain live and not fall asleep?
    xl2007 - Windows 7
    xl hates the 255 number

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi,

    A wild guess. Add DoEvents.

  3. #3
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Or use

    Code:
    With Application
    .ScreenUpdating=Not .ScreenUpdating:.ScreenUpdating=Not .ScreenUpdating
    End With
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #4
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    I will try that thanks
    xl2007 - Windows 7
    xl hates the 255 number

  5. #5
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Any updates?
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  6. #6
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    Was out of town - have not tried yet - But I will for sure
    xl2007 - Windows 7
    xl hates the 255 number

  7. #7
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    Fox
    Tried the screenupdating - thanks for trying - did not do the trick. I will put that on the hook - then fix it at the end of it all. I did not try the do event suggestion. I have never done a do event before.
    xl2007 - Windows 7
    xl hates the 255 number

  8. #8
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    You'll have to do that at the beginning and ending of the loop (if you are using one that is)
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  9. #9
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    hmmm - had this working - so as long as the activesheet has focus - It keeps updating. However if I switch to i.e. my email and then come back to xl2007 - it appears to have hung up (statusbar does not update) - however if I let it continue - it does finish. Dont waste time on it - just one of Excels quirks. I think it manages memory very badly. But I do appreciate all the help. Even if I am slow at answering at times.
    xl2007 - Windows 7
    xl hates the 255 number

Similar Threads

  1. VBA Versions of my "Get Field" and "Get Reverse Field" formulas
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 4
    Last Post: 06-02-2017, 06:15 PM
  2. Reversing a "First Middle Last" Name to "Last, First Middle" Name Format
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 5
    Last Post: 01-06-2014, 10:04 PM
  3. Replies: 5
    Last Post: 04-18-2013, 02:30 AM
  4. Follow-up to "Excel Number Format: Indian Style Comma Separation"
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 2
    Last Post: 04-14-2012, 10:46 PM
  5. Ordinal Suffix (i.e., "st", "nd", "rd" and "th")
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 0
    Last Post: 03-20-2012, 03:46 AM

Posting Permissions

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