+ Reply to Thread
Results 1 to 5 of 5

Open statement doesn't work on protected workbooks

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    37

    Open statement doesn't work on protected workbooks

    Hi all,

    Hope any of you can help me with this. I have a workbook that needs to open another workbook which is protected by password. However, before opening this second workbook, I would like to check if the workbook is already open by someone else. Now, I thought of the options to do so: the Workbook.Open statement and the Open statement. However, the former gives me a pop-up box when I try to open it (e.i: "The file is locked for editing by John Doe. Do you want to save a local copy or open in read-only?"), the latter doesn't seem to work on protected workbooks.

    Can anyone please help me out to make one of these lines of code work?

    Please Login or Register  to view this content.
    This first code gives me the pop-up window I was talking about, could someone tell me how to disable this pop-up? I tried Application.Displayalerts=False, no use.

    Please Login or Register  to view this content.
    This second piece of code doesn't seem to work with password protected workbooks. Does anyone know how to make it work?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Open statement doesn't work on protected workbooks

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-02-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Open statement doesn't work on protected workbooks

    Thanks SHG, will give it a try! Will let you guys know if the easy solution did it

  4. #4
    Registered User
    Join Date
    08-02-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Open statement doesn't work on protected workbooks

    Worked like a charm, easy does it, as always

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Open statement doesn't work on protected workbooks

    You're welcome.

+ 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. Running workbooks.open to open pax-protected file still prompts for a password
    By karinincanada in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2015, 05:06 PM
  2. [SOLVED] Macro work in personal workbook, doesn't work in other workbooks
    By Centexcel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-30-2013, 11:47 AM
  3. Checkbox doesn't work in protected mode
    By djkeyclub in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2013, 06:30 PM
  4. VBA Doesn't Work With Protected Spreadsheet
    By jaylam in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-29-2013, 07:05 PM
  5. Excel VBA Formatting doesn't work on protected sheets?
    By meissen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2013, 12:09 PM
  6. An email link doesn't work when the worksheet is protected. How to overcome?
    By TomFioritto in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-31-2013, 07:28 PM
  7. [SOLVED] Macro doesn't work on UserInterfaceOnly-protected sheet
    By Kasama in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2006, 05:25 AM

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