+ Reply to Thread
Results 1 to 7 of 7

Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

  1. #1
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    The workbook has mutilple authors responsible for various sheets, so I cannot be assured to always know each sheet password
    There are Protected sheets With and Without passwords
    There are visible & xlveryhidden sheets

    I want to set Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    But I can’t figure out how to say ws. Password = ""
    Please Login or Register  to view this content.
    I tried to cancel the password popup window and resume next but that doesn’t work either
    Please Login or Register  to view this content.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    Perhaps this
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    OK it works but WHY?!?!?!

    How is it that
    Please Login or Register  to view this content.
    doesn't overwrite the previously saved worksheet password?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    Unlike when you don't provide a password, supplying the wrong password raises an error which is suppressed by the On Error Resume Next statement.

  5. #5
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    Thank you !!!

  6. #6
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    SO the code I requested runs without error, however, VBA is still restricted from editing the sheets which is the purpose of UserInterFaceOnly:=True

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Protect UserInterFaceOnly:=True ONLY to VISIBLE worksheets WITHOUT a password

    It works for me, although subject to the usual limits of the UserInterfaceOnly argument.

+ 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. Protect(UserInterfaceOnly)
    By waqar1239 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2017, 11:44 PM
  3. .protect userinterfaceonly:=true not working?
    By dreamz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2006, 07:31 PM
  4. [SOLVED] Can I password protect worksheets?
    By mocity in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2006, 08:15 PM
  5. Using VB to password protect, but sheet remains visible
    By JennyJeneralGraves in forum Excel General
    Replies: 0
    Last Post: 03-29-2006, 09:15 PM
  6. ".Protect userinterfaceonly:=True" & ".EnableSelection = xlUnlockedCells" not tabing
    By STEVE BELL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2006, 09:40 PM
  7. [SOLVED] Password Protect Worksheets
    By Tom Hewitt in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2005, 09:06 AM

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