+ Reply to Thread
Results 1 to 4 of 4

Create shorcut key when protecting/unprotecting worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2007, 2010
    Posts
    13

    Create shorcut key when protecting/unprotecting worksheet

    Hi everyone,

    How can i create a shortcut key in protecting/unprotecting my worksheets? For example, ctrl + P for protecting then ctrl + U for unprotecting..

    Much better if there is a code.

    Appreciate anyone's reply. Thanks!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Create shorcut key when protecting/unprotecting worksheet

    Hi Kenjiventurina,

    You can record a quick macro for protecting and unprotecting with a shortcut key of your choice... thanks.

    one example:-

    Sub Macro2()
    
    ' Keyboard Shortcut: Ctrl+p
    
        Range("A1").Select
        ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
    End Sub
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    02-10-2012
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2007, 2010
    Posts
    13

    Re: Create shorcut key when protecting/unprotecting worksheet

    wth! you saved my ***.. thanks DILI!!

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Create shorcut key when protecting/unprotecting worksheet

    You are welcome kenjiventurina..

    Cheers

    Request you to mark this thread as [SOLVED]..

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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