+ Reply to Thread
Results 1 to 7 of 7

How to use VBAs on password protected sheets and workbook?

  1. #1
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    How to use VBAs on password protected sheets and workbook?

    Hi all,

    Hope all is well.

    Attached file contains different macros which were running perfect as long as the sheets were not protected.

    I have now protected VBA, all sheets and workbook with password Abc@123 thus leading to some errors.

    Can someone please modify VBA so as to work on password protected sheets?

    Also, sheet DM records contain some cells as locked and some unlocked. However, when i try entering data in an unlocked cell i.e Column C, i am asked to enter password (see attachment).

    Can someone please rectify it?

    Thanks in advance.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: How to use VBAs on password protected sheets and workbook?

    What have you tried yourself after reading some of the suggestions at the bottom of this post?
    No use suggesting a fix that you might have tried yourself and that did not work for some reason.
    Experience trumps academics every day of the week and twice on Sunday.

  3. #3
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to use VBAs on password protected sheets and workbook?

    Hi jolivanes,

    Appreciate your response.

    I tried changing VBA but it didn't work out and therefore dropped this post.
    Attached Images Attached Images

  4. #4
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to use VBAs on password protected sheets and workbook?

    hi,

    can someone please help with the correct VBA

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: How to use VBAs on password protected sheets and workbook?

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to use VBAs on password protected sheets and workbook?

    @jolivanes

    Thanks for your response.

    Tried above code, but still resulting in error
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: How to use VBAs on password protected sheets and workbook?

    I would suggest to comment (put an apostrophe in front of all lines) all macros in all worksheet modules and uncomment them one by one till you find the culprit.

+ 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. How to overwrite password protected sheets or break the locked sheets
    By anita2017 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2019, 01:22 PM
  2. Replies: 0
    Last Post: 03-28-2018, 02:49 AM
  3. Replies: 0
    Last Post: 03-28-2018, 02:49 AM
  4. Password that unhides all sheets in "read only mode"/protected workbook
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-16-2016, 07:17 PM
  5. Opening Password-protected workbook, but still being prompted for password
    By dpmcgonigle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2015, 12:34 AM
  6. Replies: 2
    Last Post: 11-17-2014, 04:28 PM
  7. [SOLVED] Password array to open all password protected workbook in a folder
    By rename in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-07-2012, 05:06 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