+ Reply to Thread
Results 1 to 2 of 2

Workbook Password protection, but viewing and sorting allowed

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    3

    Workbook Password protection, but viewing and sorting allowed

    I am very new to building macros for Excel. I have already password protected my workbook, but I want to be able to allow users to still view the information, sort, etc, but not allow them to save. In other words, the document can be opened with or without a password, but changes will only be allowed if the password was entered.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Workbook Password protection, but viewing and sorting allowed

    Place the following code in the code module for ThisWorkbook (not into a regular module). Change "password" to whatever password you want to use. Keep in mind that anyone who knows how to access the macros will be ale to see your password. To avoid this, you would have to protect your macros with a password as well. If you are unsure of how to do this, please let me know. Try it out and see if does what you want.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 04-11-2013 at 07:23 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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