+ Reply to Thread
Results 1 to 3 of 3

Force Re-Open of Open Workbook with no confirmation

  1. #1
    Registered User
    Join Date
    04-16-2009
    Location
    Kilkenny, Ireland.
    MS-Off Ver
    Excel 365
    Posts
    47

    Force Re-Open of Open Workbook with no confirmation

    Hi,

    Hopefully this is a relatively straightforward query, would be obliged for any tips on same.

    I have the following piece of code:-

    Please Login or Register  to view this content.
    If test.xls is already open when the code is executed I get the expected message: test.xls is already open... Reopening will cause any changes you made to be discarded. Do you want to re-open etc...etc...

    Question: Is there a switch on the open method, or some other technique that I can use that will force the re-opening of the workbook without confirmation?

    Many thanks in advance.

    Orson.
    Last edited by Orson100; 06-11-2009 at 11:10 AM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Force Re-Open of Open Workbook with no confirmation

    Hi Orson

    Before the open line include the following line of code:

    Please Login or Register  to view this content.
    which will automatically cause the default option to be selected (ie to re-open the workbook).

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Registered User
    Join Date
    04-16-2009
    Location
    Kilkenny, Ireland.
    MS-Off Ver
    Excel 365
    Posts
    47

    Re: Force Re-Open of Open Workbook with no confirmation

    Nice one Richard, that has done the trick and saved me a fair bit of time googling I suspect.

    Thanks again.
    Orson.

+ 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