+ Reply to Thread
Results 1 to 2 of 2

Protect single cells in one excel sheet

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    Frankfurt, Germany
    MS-Off Ver
    Excel 2010
    Posts
    1

    Protect single cells in one excel sheet

    Hello,

    I want to protect in my excel programm everything except a few single cells. Therefore there shall be only a few input fields.

    Currently my VBA program wants to write in other cells too. But I want to protect those of the user.

    I couldn't make it work, because these cells seem to be protected for my VBA-application as well!

    It would be great, if anybody could help me out of this and tell me how to configure that only Excel itself is allowed to write and no one else?

    Thanks a lot!

    Lausa

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Protect single cells in one excel sheet

    Hi, Lausa,

    I couldn't make it work, because these cells seem to be protected for my VBA-application as well!
    If you open the workbook or activate the sheet and then protect the sheet/sheets by passing the parameter UserIenterfaceOnly:=True macro action will be allowed while normal action still is forbidden. Please note that this action will not be saved with the workbook but hast to be repeated on each opening of the workbook.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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