+ Reply to Thread
Results 1 to 4 of 4

Excel non responsive

  1. #1
    Registered User
    Join Date
    03-23-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel non responsive

    I have an datavalidation control in a worksheet. I have written code( includes formulas) for populating certain cells on the worksheet change event. When I select 'Yes' from list then cells should be populated and when I select 'No' cells(including formula) should be cleared. Some of the cells contain formulas which are calculated using an Add-In. When I select Yes to No or No to Yes, 'calculate' is being displayed in the status bar and excel become non responsive. If I handle the functionality in the click event (for example I used option button click event) then it works fine. Still if I select other validation controls, excel starts showing 'calculate' in the status bar and subsequently hangs. If I close the application then it displays error message saying 'Microsoft Office has encountered a problem and needs to close'. These list controls are populated using another ranges.

    Could you please suggest what can be the reason why Excel becomes un-responsive?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Excel non responsive

    Are you disabling events in the Change event prior to editing the contents of the sheet ? If not you're most likely going into a perpetual loop.

    Please post your code & ensure you encase within CODE tags (highlight VBA and press the # icon)

  3. #3
    Registered User
    Join Date
    03-23-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel non responsive

    I am disabling the events. Actually Application interacts with a third party Add-In. When I do a specific action using this Add-In, it will insert formulas to almost 36 cells. If the cells doesn't contain any of these formula then application works fine. All other functionalities like radio button events are working fine. When ever I select any value from any data validation controls for which a cell change statement is written, then application shows 'calculate' and hangs subsequently.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Excel non responsive

    I'm afraid I have to bow out at this point as there is so little to go on answering your question is an impossibility (for me at least...)

    You tell us that you're using "some" external add-in, "some" code, "some" validation... if you run this code via a Change event XL crashes (even with Events disabled) whereas if you run the same code via a non-worksheet event such as a Control event everything's fine...

    People here will need significantly more info to help you resolve... for a start your "some" code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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