Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect with AllowFiltering
Following syntax isn't accepted by Excel:
activesheet.protect allowfiltering:=true (error 1004) Wasn't it available in Office 2000 ? If it's the problem, then is there another way to lock the whole sheet while filter remains enabled ? Thanks! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect with AllowFiltering
Hello
Your code won't work with Excel2000. Place this code into thisworkbook and amend accordingly: Private Sub Workbook_Open() Feuil1.EnableAutoFilter = True 'amend sheet codename Feuil1.Protect Contents:=True, UserInterfaceOnly:=True 'amend sheetcodename End Sub Cordially Pascal |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect with AllowFiltering
OK, perfect!
This works fine, thanks Pascal! Doesn't need to be in the Workbook codemodule though, so even better! Jérémie "papou" <cestpasbon@çanonplus schrieb im Newsbeitrag ... Hello Your code won't work with Excel2000. Place this code into thisworkbook and amend accordingly: Private Sub Workbook_Open() Feuil1.EnableAutoFilter = True 'amend sheet codename Feuil1.Protect Contents:=True, UserInterfaceOnly:=True 'amend sheetcodename End Sub Cordially Pascal |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect with AllowFiltering
Unless something has changed,
If it isn't, then it won't work the next time you open the workbook. It has to be set each time as it is non-persistent when done this way. You might want to do some additional testing. -- Regards, Tom Ogilvy "Jérémie Gent" wrote: OK, perfect! This works fine, thanks Pascal! Doesn't need to be in the Workbook codemodule though, so even better! Jérémie "papou" <cestpasbon@çanonplus schrieb im Newsbeitrag ... Hello Your code won't work with Excel2000. Place this code into thisworkbook and amend accordingly: Private Sub Workbook_Open() Feuil1.EnableAutoFilter = True 'amend sheet codename Feuil1.Protect Contents:=True, UserInterfaceOnly:=True 'amend sheetcodename End Sub Cordially Pascal |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect with AllowFiltering
Thanks a lot to both of you, you're right, and I was wrong!
Now everything is working fine! Best Jérémie "Tom Ogilvy" schrieb im Newsbeitrag ... Unless something has changed, If it isn't, then it won't work the next time you open the workbook. It has to be set each time as it is non-persistent when done this way. You might want to do some additional testing. -- Regards, Tom Ogilvy "Jérémie Gent" wrote: OK, perfect! This works fine, thanks Pascal! Doesn't need to be in the Workbook codemodule though, so even better! Jérémie "papou" <cestpasbon@çanonplus schrieb im Newsbeitrag ... Hello Your code won't work with Excel2000. Place this code into thisworkbook and amend accordingly: Private Sub Workbook_Open() Feuil1.EnableAutoFilter = True 'amend sheet codename Feuil1.Protect Contents:=True, UserInterfaceOnly:=True 'amend sheetcodename End Sub Cordially Pascal |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can protect worksheet then workbook but not Protect and Share in code | Excel Programming | |||
Protect Workbook Vs Protect Sheet | New Users to Excel | |||
Protect UserInterface VS Protect/Unprotect | Excel Programming | |||
Disable Tools, Protect, Protect Workbook | Excel Programming | |||
Lock and protect cells without protect the sheet | Excel Programming |