+ Reply to Thread
Results 1 to 3 of 3

Cell entry order in protected sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    02-07-2009
    Location
    Milwaukee, Wisconsin, US
    MS-Off Ver
    Excel 2002
    Posts
    2

    Cell entry order in protected sheet

    Is there a way to adjust or select the order in which cells are filled in when the sheet is protected. Word ahs a very option - can excel do the same?
    I have seen several VBA's, but not sure how to apply them.
    TIA

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Cell entry order in protected sheet

    You could use an event driven macro to do this.

    Paste the following onto the Sheet1 tab in the VBA editor.

    Private Sub Worksheet_Change(ByVal Target As Range)
    Select Case Target.Address
    Case Is = "$A$1"
        ActiveSheet.Unprotect
        Range("$A$2").Locked = False
        ActiveSheet.Protect
    Case Is = "$A$2"
        ActiveSheet.Unprotect
        Range("$A$3").Locked = False
        ActiveSheet.Protect
    End Select
    End Sub
    On Sheet1, lock all the cells except A1 and protect. You will find that A1 to A3 can only now be changed in sequence.
    Martin

  3. #3
    Registered User
    Join Date
    02-07-2009
    Location
    Milwaukee, Wisconsin, US
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Cell entry order in protected sheet

    Thanks very much. Not sure this is what I was looking for. I have unlocked cells - A1, C1, E1 & A3, C3, & E3. When protected you can tab (tab key) from A1 to C1 to E1 then to A3 to C3 to E3. I would like the the cell order to go from A1 to A3 then to C1 to C3 then E1 to E3. I some case I'd like it to move left to right and then sometimes top to bottom. It that possible??
    Thanks
    Bob

+ 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