dcsimg
Results 1 to 6 of 6

Thread: Unprotect ActiveX combobox on an Excel worksheet

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,136

    Unprotect ActiveX combobox on an Excel worksheet

    If I have an ActiveX combobox on a protected sheet. The sheets is protected via Sheets("MySheet").Protect password:="Secret", UserInterFaceOnly:=True in Workbook_Open. I have no problem using the combobox, but someone I gave the workbook to gets a "The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password." error when they try to select an item in the combobox. I assume that I can fix that by changing the .Protect statement by adding the proper True or False setting for DrawingObjects or Scenarios or some other parameter, but I'm not sure if they should be True or if they should be False. Can someone tell me what the proper settings should be?

  2. #2
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    2,115

    Re: Unprotect ActiveX combobox on an Excel worksheet

    Reply #5 --> https://www.mrexcel.com/forum/excel-...ml#post4130058

    Has the Combobox a linked cell?
    One System to rule them all, One IDE to find them,
    One Code to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    For health reasons i try to avoid reading unformatted Code

  3. #3

  4. #4
    PowerPoster
    Join Date
    Oct 2008
    Location
    Midwest Region, United States
    Posts
    3,565

    Re: Unprotect ActiveX combobox on an Excel worksheet

    I don't think a cell's contents can be updated on a protected sheet using those arguments. "UserInterfaceOnly" protects the "interface" but not macros. Why don't you turn the protection off via code in order to write to the cell, then turn it back on?

  5. #5

  6. #6

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width