+ Reply to Thread
Results 1 to 6 of 6

Checkbox doesn't work in protected mode

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Lynn Haven, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Checkbox doesn't work in protected mode

    I have an excel sheet in which the majority of it is protected and cells are left open to be filled in by my employees while they cannot manipulate all of them. This is my first time venturing into Macros/VBA, etc. so any help will be appreciated.

    I created a checkbox that when clicked, hides multiple rows as well as successfully hides other checkboxes. The code is probably longer than it needs to be and is very simple but I don't know another way to do it at this point. Basically, I want to protect my sheet and the checkbox still work. Can anyone help?

    Also, I have the sheet actually named "Employee Information" and I don't know how else to do it except to say "activesheet" though my guess is that my protecting the sheet it no longer recognizes it as an active sheet.

    Please help, on a time crunch! I am using Excel2010. Also worth mentioning - when I emailed this to my boss (saved as macro-enabled worksheet), he opened it, enabled the macros and it did not work for him (sheet was unprotected at the time). Any ideas?


    Please Login or Register  to view this content.
    Last edited by djkeyclub; 08-15-2013 at 05:36 PM.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Checkbox doesn't work in protected mode

    Welcome to the forum. Please use code tags to frame your code. To do this click 'Edit Post' under your original post, highlight all the code, and press the # button in the tool bar.

    Try this:
    Please Login or Register  to view this content.
    Also you'll have to make sure that the checkbox has its protected property turned off. You can do this by right clicking the checkbox and going to properties.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Lynn Haven, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Checkbox doesn't work in protected mode

    thanks for the quick reply! When I ran that code, and went to check the box with the protected sheet, the "unprotect sheet" boxed opened prompting me to put in a password. Any ideas on how to avoid that?

  4. #4
    Registered User
    Join Date
    08-14-2013
    Location
    Lynn Haven, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Checkbox doesn't work in protected mode

    thanks for the quick reply! When I ran that code, and went to check the box with the protected sheet, the "unprotect sheet" boxed opened prompting me to put in a password. Any ideas on how to avoid that?

  5. #5
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Checkbox doesn't work in protected mode

    Please see post #2 to amend your original post before we proceed.

  6. #6
    Registered User
    Join Date
    08-14-2013
    Location
    Lynn Haven, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Checkbox doesn't work in protected mode

    Original post amended
    Last edited by djkeyclub; 08-15-2013 at 05:50 PM.

  7. #7
    Registered User
    Join Date
    08-14-2013
    Location
    Lynn Haven, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Checkbox doesn't work in protected mode

    well, I think I figured it out. I just added the below statement before I started my code and it worked like a charm! Now, I just need to figure out why when I email it to my boss it doesn't work for him.

    Please Login or Register  to view this content.

+ 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. VBA Doesn't Work With Protected Spreadsheet
    By jaylam in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-29-2013, 07:05 PM
  2. Excel VBA Formatting doesn't work on protected sheets?
    By meissen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2013, 12:09 PM
  3. An email link doesn't work when the worksheet is protected. How to overcome?
    By TomFioritto in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-31-2013, 07:28 PM
  4. Replies: 0
    Last Post: 09-18-2012, 11:24 AM
  5. Macro doesn't work on UserInterfaceOnly-protected sheet
    By Kasama in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2006, 05:25 AM

Tags for this Thread

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