Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some workbooks i need to protect from anyone making changes (an
thus ending up with invalid versions). The problem is I have a combobox on them and when protected, even if click to allow every single thing in the checkboxes, i still get a error saying this cannot be done on a protected workbook when i clic 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 th allow autofilter) but still this error comes up -- Message posted from http://www.ExcelForum.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
those cells are on the same sheet as the combobox, and the all the
tickboxes for allowing stuff in protection have been ticked for that sheet. th other 2 sheets arent protected at all at the moment. --- Message posted from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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/ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hmmm what code would unprotect the sheet (including entering
password)? worksheet.unprotect(password) -- Message posted from http://www.ExcelForum.com |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
worksheets("Sheet1").Unprotect Password:="ABCD"
' code Worksheets("Sheet1").Protect Password:="ABCD" -- Regards, Tom Ogilvy "neowok " wrote in message ... hmmm what code would unprotect the sheet (including entering a password)? worksheet.unprotect(password) ? --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
2007 vs 2003 - work protection | Excel Discussion (Misc queries) | |||
protection is not work. | Excel Worksheet Functions | |||
Why does'nt sheet protection allow CTRL+PAGEUP/DOWN to work? | Excel Worksheet Functions | |||
work sheet protection | Excel Discussion (Misc queries) |