+ Reply to Thread
Results 1 to 3 of 3

Test for document recovery pane visibility

  1. #1
    Registered User
    Join Date
    09-02-2009
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    77

    Test for document recovery pane visibility

    Hi all,

    I am trying to figure out if there is a way to detect the presence of the special "Document Recovery" pane which appears at the left when Excel recovers from a crash.

    For the normal task pane I can test for Application.CommandBars("Task Pane").Visible = TRUE but I can't seem to find a way of detecting the document recovery one.

    Any ideas?

    I suppose one way to do this would be to force a crash/recover then run a macro to enumerate all the visible controls/toolbars, but so far I have had no success in actually getting Excel to crash!

    The reason I want to be able to detect this is for my current project which always runs from a temporary local copy on the user's C: drive which I don't want resurrected in the event of a crash.

    All help/ideas gratefully accepted.

    Cheers,
    Bruce
    Last edited by blackworx; 08-08-2012 at 08:07 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Test for document recovery pane visibility

    For example:
    Please Login or Register  to view this content.
    PS You can just terminate the excel.exe process from task manager to get to it!
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    09-02-2009
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Test for document recovery pane visibility

    Fantastic thanks romperstomper. And why didn't I think of just terminating the process - trying too hard, derp!

    I did actually hit on the .CommandBars("Document Recovery").Visible property first time round, but since it was erroring (with Excel in a non-recovery state) as opposed to returning FALSE, I stupidly assumed I either had the name wrong, or it wasn't a member of the app.CommandBars() collection. I should know by now not to make such daft assumptions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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