+ Reply to Thread
Results 1 to 14 of 14

Unprotect Workbook Using UserInterfaceOnly

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Unprotect Workbook Using UserInterfaceOnly

    Greetings,
    I am using the following code for my protected Worksheets when the Workbook Opens. Is there a way to use the same for the Workbook.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Unprotect Workbook Using UserInterfaceOnly

    Workbook.Protect method (Excel)

  3. #3
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Unprotect Workbook Using UserInterfaceOnly

    skywriter,
    I opened the link you provided but did not see how to incorporate using the UserInterfaceOnly code.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Unprotect Workbook Using UserInterfaceOnly


    Hi,

    as like you can read in post #2 link or in VBA help UserInferfaceOnly does not exist at workbook level …

  5. #5
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Unprotect Workbook Using UserInterfaceOnly

    Marc,
    Thank you for your reply.
    I have several worksheets that are hidden. And these are accessed through a macro Ex: "Sheet15.Visible = True". Is there a way of unprotecting/protecting the Workbook without having to use the following code within every macro.
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Unprotect Workbook Using UserInterfaceOnly


    The question is do you need to protect the workbook, why not just the worksheets ?

  7. #7
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Unprotect Workbook Using UserInterfaceOnly

    I should have stated earlier - this workbook will be used by other individuals. I want to protect the workbook to prevent anyone from accessing the "data".

  8. #8
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Unprotect Workbook Using UserInterfaceOnly


    So once someone has the main password he can open and use the workbook as usual …

  9. #9
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Unprotect Workbook Using UserInterfaceOnly

    Correct. As well as possibly do harm to the programing.

  10. #10
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Unprotect Workbook Using UserInterfaceOnly


    So once the workbook is yet opened, your VBA procedures just need to take care of the worksheets status, protected or not,
    or I'm missing anything ?

  11. #11
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Unprotect Workbook Using UserInterfaceOnly

    Once the workbook is opened, there are several worksheets that are hidden. The hidden worksheets are unhidden via a button (running a macro: "Sheet15.Visible = True"). I know I can insert code within the macro to unprotect/protect the workbook. However, I have many (200+) macros that will require inserting the code. I am wanting to know if there is a simpler way to unprotect/protect the workbook, instead of inserting the code into each macro.

  12. #12
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Unprotect Workbook Using UserInterfaceOnly


    If the workbook is opened with the main password so no need to unprotect the workbook normally, just need to manage sheets as usual …

  13. #13
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Unprotect Workbook Using UserInterfaceOnly

    I have attached a sample workbook that will indicate the issue I have with a protected workbook.
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Unprotect Workbook Using UserInterfaceOnly


    Ok sorry my bad I have made a so bad beginner confusion mixing the open password workbook vs the workbook protection !
    So yes as it seems there is no trick to bypass the workbook protection so you need to unprotect the workbook if its structure was checked …

+ 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. [SOLVED] Protect workbook for UserInterfaceOnly
    By Jerbinator in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-28-2019, 12:00 PM
  2. VBA unprotect workbook
    By lemonap618 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 03:34 PM
  3. Unprotect Excel 2010 workbook - not a shared workbook
    By kisboros in forum Excel General
    Replies: 1
    Last Post: 01-08-2015, 06:51 PM
  4. [SOLVED] How do I turn on Protection UserInterFaceOnly on a shared workbook?
    By scottbass in forum Excel General
    Replies: 5
    Last Post: 01-12-2014, 06:52 PM
  5. [SOLVED] Uploading data to a protect workbook; Unprotect workbook
    By pinstripe05 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-02-2013, 06:07 PM
  6. Unprotect Workbook
    By omletto in forum Excel General
    Replies: 2
    Last Post: 05-16-2011, 08:00 AM
  7. Unprotect Workbook
    By Kent in forum Excel General
    Replies: 1
    Last Post: 02-03-2005, 04:01 PM

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