Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi:
I have a spreadsheet that is protected. In that spreadsheet, I also have three macros with corresponding buttons to run three different report (plus a reset button). I need to be able to allow all users to access auto filter capabilities on the sheet. So, when I password protect it, I check the box that says allow users to auto-filter. HOWEVER, each of the macros begins and ends with a password unprotect and password reprotect so that it can complete some of its functions. So, the problem is when the macro reprotects, it doesn't allow the auto-filter to be used. Can you help? Thank you! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
When the macro protects the sheet there are a number of optional settings
that can be defined. Ensure that this line is included in each protection... AllowFiltering:=True So something like Sheets("Sheet1").Protect AllowFiltering:=True -- HTH... Jim Thomlinson "Roady" wrote: Hi: I have a spreadsheet that is protected. In that spreadsheet, I also have three macros with corresponding buttons to run three different report (plus a reset button). I need to be able to allow all users to access auto filter capabilities on the sheet. So, when I password protect it, I check the box that says allow users to auto-filter. HOWEVER, each of the macros begins and ends with a password unprotect and password reprotect so that it can complete some of its functions. So, the problem is when the macro reprotects, it doesn't allow the auto-filter to be used. Can you help? Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password Protect Macro - Compile Error | Excel Discussion (Misc queries) | |||
Code to protect/unprotect a sheet using a macro with password | Excel Discussion (Misc queries) | |||
Password for Running the Macro | Excel Discussion (Misc queries) | |||
Add protect worksheet password in macro | Excel Worksheet Functions | |||
Auto Protect workbook with password upon opening | Excel Worksheet Functions |