+ Reply to Thread
Results 1 to 5 of 5

Macro to password protect with some editing options

  1. #1
    Registered User
    Join Date
    04-24-2011
    Location
    Brisbane, QLD
    MS-Off Ver
    Excel 2002
    Posts
    25

    Macro to password protect with some editing options

    I want to be able to run a macro that password protects a sheet, but I want to allow certain editing options. Current I use

    Please Login or Register  to view this content.
    This allows users to select unlocked cells & select locked cells.

    I would like to allow users the following
    Select locked cells
    Select unlocked cells
    Format rows
    Delete rows

    Is there any way to do this in a macro?

    Thanks
    Last edited by BridgeCat; 05-15-2012 at 10:34 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to password protect with some editing options

    Record a macro to start with
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,912

    Re: Macro to password protect with some editing options

    If you record a macro while applying the settings you want, you get:

    Please Login or Register  to view this content.

    So, you should be able to edit to:

    Please Login or Register  to view this content.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    04-24-2011
    Location
    Brisbane, QLD
    MS-Off Ver
    Excel 2002
    Posts
    25

    Re: Macro to password protect with some editing options

    Wow thats embarrassing that I didn't think to just record the macro haha! Thanks guys!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,912

    Re: Macro to password protect with some editing options

    You're welcome. Thanks for the rep.

+ 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