Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Protecting a cell

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I prepared an amortization spreadsheet using Input Boxes and a number of macros. My problem is that I want to force users to use the Input Boxes and NOT to enter the data directly in the cells.

    I thought I could do this by protecting the cells, but each time I protect the cells, the macros fail!

    How can I get the macros to work while the cells are protected? Really appreciate your help...

    [ This Message was edited by: Amortcal on 2002-05-06 18:45 ]

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Sydney/Brisbane , Australia
    Posts
    542
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    i use the following code in worksheets that i dont want the user to clcik on the protected boxes(where they'd normally get a message saying they are restricted).
    it means that only those cells that are unprotected can be clicked on

    With Worksheets("index")
    .EnableSelection = xlUnlockedCells
    .Protect DrawingObjects:=True, contents:=True, userInterfaceOnly:=True
    End With

  3. #3
    New Member
    Join Date
    May 2002
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks Qroozn....but can you give me some more details. How do I specify within the code that you sent, the actual cells that I want to be protected? Thanks again.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •