+ Reply to Thread
Results 1 to 2 of 2

Cannot use VBA check box with protected sheet/columns

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    south africa, Johannesburg
    MS-Off Ver
    2010
    Posts
    1

    Cannot use VBA check box with protected sheet/columns

    Hi,

    I need to make a excel costing model to calculate various products prices. I am using Excel 2010.

    I have many products and do not need all of them displaying at the same time, therefor I inserted a Checkbox (ActiveX Control) that hides my columns that I do not need.

    I did that by inserting the following and it works fine :

    Please Login or Register  to view this content.
    The problem is I now need to lock certain cells so that they can remain fixed and the recipe cannot change.

    Once locked my checkbox no longer works and I get the following error : "Run-time error '1004': Unable to set hidden property of the range class"

    Can someone please help and tell me how this can be done? fyi the above is all I have done on VBA, so limited knowledge on VBA.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Cannot use VBA check box with protected sheet/columns

    Does allowing the user to Format Columns help? If not, you can unprotect, do your sub, and protect.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

+ 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. how do you allow spell check in a protected sheet?
    By NinjaBear in forum Excel General
    Replies: 1
    Last Post: 12-14-2011, 08:28 AM
  2. Any way to use spell check on a protected sheet?
    By vinokirk in forum Excel General
    Replies: 0
    Last Post: 09-01-2011, 07:14 AM
  3. check boxes in a protected sheet
    By Bhavini in forum Excel General
    Replies: 3
    Last Post: 12-03-2007, 04:33 PM
  4. Enable check box in protected sheet + group check boxes
    By Dexxterr in forum Excel General
    Replies: 4
    Last Post: 08-02-2006, 07:05 AM
  5. Spell check in a protected sheet
    By Jae in forum Excel General
    Replies: 1
    Last Post: 04-28-2006, 03:55 PM

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