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/