+ Reply to Thread
Results 1 to 4 of 4

macro to Un protect a worksheet from another workbook

  1. #1
    Forum Contributor
    Join Date
    05-14-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    155

    macro to Un protect a worksheet from another workbook

    Dear Experts,
    I would like a vba code as below: -

    I have a workbook called master.xlsm From this workbook I want to open another workbook named Database.xlsm which is in the same path with sheet protection (sheet3).
    I want a code that if i open database file from Master file using a button, database file should open and also it should be unprotect sheet3 of database file.
    But if I open directly database file, it should open in worksheet protected mode only.

    Please look into my query and help for the same.

    Thanks in advance
    Rajeev Kumar

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: macro to Un protect a worksheet from another workbook

    Do you have the password for that protected workbook?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    05-14-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    155

    Re: macro to Un protect a worksheet from another workbook

    Yes i have password of the said file

  4. #4
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: macro to Un protect a worksheet from another workbook

    try

    Please Login or Register  to view this content.
    Last edited by k1dr0ck; 07-24-2019 at 02:41 AM.

+ 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. Macro to Copy/Paste History in specific worksheet, password protect workbook
    By gaker10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2015, 02:58 PM
  2. [SOLVED] how can i protect a single worksheet within a workbook
    By 3bbas in forum Excel General
    Replies: 10
    Last Post: 03-24-2015, 03:48 PM
  3. Shared Workbook - Protect Worksheet
    By Chard in forum Excel General
    Replies: 0
    Last Post: 10-02-2006, 02:59 PM
  4. Replies: 6
    Last Post: 12-27-2005, 04:20 AM
  5. [SOLVED] Protect Workbook vs Worksheet??
    By Dan B in forum Excel General
    Replies: 3
    Last Post: 11-07-2005, 05:10 PM
  6. Protect Workbook vs Worksheet??
    By Dan B in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2005, 05:10 PM
  7. Replies: 5
    Last Post: 08-09-2005, 11:05 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