View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default using protection (but allowing a combobox to still work)

In your code: Unprotect the sheet, perform your action, protect the sheet.

--
Regards,
Tom Ogilvy

"neowok " wrote in message
...
I have some workbooks i need to protect from anyone making changes (and
thus ending up with invalid versions).

The problem is I have a combobox on them and when protected, even if i
click to allow every single thing in the checkboxes, i still get an
error saying this cannot be done on a protected workbook when i click
something in the combobox. the error highlights this line of code

Me.Range("mytables").AutoFilter 4, _
"=*" & Me.ComboBox1.Value & "*", xlAnd, , False

is it possible to get this to run? I ticked every box (including the
allow autofilter) but still this error comes up.


---
Message posted from http://www.ExcelForum.com/