+ Reply to Thread
Results 1 to 14 of 14

Issue when protecting a work sheet

  1. #1
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Issue when protecting a work sheet

    Hi
    I have an issue with my spread sheet that I can't seam to resolve. I have a VBA formula the created a drop down that I can do a multiple select for the cell. It works perfect when the sheet is unlocked, but when I protect it the work sheet the drop down cell won't let me select multiple choices. Would anyone have any idea on how I could resolve this.
    Thanks in advance for any advice.

  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,198

    Re: Issue when protecting a work sheet

    Hi, Treecko,

    have you unlocked the cell prior to applying Protection?

    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

  3. #3
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Issue when protecting a work sheet

    Hi Thanks for the reply, Yes the cells in the column are unlocked, This is what's got me so confused about it.

  4. #4
    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,198

    Re: Issue when protecting a work sheet

    Hi, Treecko,

    would it be possible to post the workbook as an attachment? We might find the reason for the strange behaviour if we could have a closer look at it.

    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Issue when protecting a work sheet

    Hi HaHoBe
    Thanks for the reply again. I uploaded a sheet and if you have issuse with the pass word, it is "protect"
    Good luck and thanks for looking at it
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Issue when protecting a work sheet

    Sorry forgot to mention column L is the drop down that multiple codes can be checked. I tried also adding a code in VB but it seems to kck back out when I close and open the file again. It asked for the password to start again. I'd like to try and avoid it as I would be send the sheets out and not really want to provide them with the pass word

  7. #7
    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,198

    Re: Issue when protecting a work sheet

    Hi, Treecko,

    no luck with the mentioned password for me.

    You should protect the worksheet on opening the workbook or on activating the sheet as UserInterfaceOnly is volatile and will not be saved with the workbook.

    Ciao,
    Holger

  8. #8
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Issue when protecting a work sheet

    Sorry HaHobe
    I appreciate you sticking with this and me not uploading the file correctly. I re uploaded the file again and left it unprotected.
    Thanks again
    Attached Files Attached Files

  9. #9
    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,198

    Re: Issue when protecting a work sheet

    Hi, Treecko,

    like mentioned in my last post: if I add a Workbook_Open-event in ThisWorkbook like
    Please Login or Register  to view this content.
    I canīt find any problem using Win8.1 and Excel2013.

    Ciao,
    Holger

  10. #10
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Issue when protecting a work sheet

    Thanks for the very quick reply. Sorry as my VB experience is very much an amateur. I still have the issue that it works when I have the file open,but if I close/save the file, then open it again it relies on me enter the password again at the start to have the column L work properly. Once I enter the password and enter something in the cell in column L, it then reverts back to a protected sheet. I upload the VB formula. I a also using Excel 10 version (sorry for not mention it earlier)
    Thanks again

    Please Login or Register  to view this content.

  11. #11
    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,198

    Re: Issue when protecting a work sheet

    Hi, Treecko,

    did you insert the posted code Workbook_Open into ThisWorkbook and save the file, close it, reopen it and test?

    Ciao,
    Holger

  12. #12
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Issue when protecting a work sheet

    Hi again HaHoBe
    I'm sorry, I can't seem to get the formula to work, I've tried what you said but think the biggest problem is the glitch between the keyboard and the processor (me) lol.
    Regards Treecko

  13. #13
    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,198

    Re: Issue when protecting a work sheet

    Hi, Treecko,

    instead of copying the code behind each sheet itīs in ThisWorkbook now and working foir all sheets except List:

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Issue when protecting a work sheet

    Hi HaHoBe
    I tried opening and closing your attached file a least a dozen times making additions and playing with it. It worked Great!!!.
    I thank you very much for taking time to help me with my issue. This is one file, for my things I was taught folder.
    Again much appreciated
    Treecko

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro doesn't work after protecting sheet !
    By icalderhead in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2013, 02:30 PM
  2. Protecting my work
    By lemonstar in forum Excel General
    Replies: 2
    Last Post: 05-21-2009, 04:56 PM
  3. Protecting Work-Sheets
    By bbrian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2009, 02:43 AM
  4. Excel 2003 Issue on formating after protecting the sheet
    By soumen347 in forum Excel General
    Replies: 0
    Last Post: 01-15-2009, 06:28 AM
  5. why doesn't sort work when it's choosen before protecting sheet
    By Mearll in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2006, 03:35 PM

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