Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How can I protect an excel worksheet containing filters?
Using Excel 2003 but need to share the worksheet with Excel 2000 users.I need
to be able to protect certain cells within the worksheet. A Macro is set-up to sort certain info within the worksheet using various filters. When the sheet is protected the filters no longer work. Any help would be appreciated. |
#2
|
|||
|
|||
JMcG, you could have the macro unprotect the sheet, sort the info and then
protect the sheet -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "JMcG" wrote in message ... Using Excel 2003 but need to share the worksheet with Excel 2000 users.I need to be able to protect certain cells within the worksheet. A Macro is set-up to sort certain info within the worksheet using various filters. When the sheet is protected the filters no longer work. Any help would be appreciated. |
#3
|
|||
|
|||
Use this in the Auto_open procedure in a General module:
Option Explicit Sub auto_open() Dim wks As Worksheet Set wks = Worksheets("sheet1") With wks .Protect Password:="hi", userinterfaceonly:=True .EnableAutoFilter = True End With End Sub (you could use the workbook_open event under ThisWorkbook, too.) This setting isn't remembered between closing/reopening the workbook. (So Auto_open is a nice spot for it.) JMcG wrote: Using Excel 2003 but need to share the worksheet with Excel 2000 users.I need to be able to protect certain cells within the worksheet. A Macro is set-up to sort certain info within the worksheet using various filters. When the sheet is protected the filters no longer work. Any help would be appreciated. -- Dave Peterson |
#4
|
|||
|
|||
Hi,
I tried out your fix but unfortunately the problem still occurs. Thanks for your help though. "Paul B" wrote: JMcG, you could have the macro unprotect the sheet, sort the info and then protect the sheet -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "JMcG" wrote in message ... Using Excel 2003 but need to share the worksheet with Excel 2000 users.I need to be able to protect certain cells within the worksheet. A Macro is set-up to sort certain info within the worksheet using various filters. When the sheet is protected the filters no longer work. Any help would be appreciated. |
#5
|
|||
|
|||
Hi Dave,
I'll give this a try and get back to you with the results. "Dave Peterson" wrote: Use this in the Auto_open procedure in a General module: Option Explicit Sub auto_open() Dim wks As Worksheet Set wks = Worksheets("sheet1") With wks .Protect Password:="hi", userinterfaceonly:=True .EnableAutoFilter = True End With End Sub (you could use the workbook_open event under ThisWorkbook, too.) This setting isn't remembered between closing/reopening the workbook. (So Auto_open is a nice spot for it.) JMcG wrote: Using Excel 2003 but need to share the worksheet with Excel 2000 users.I need to be able to protect certain cells within the worksheet. A Macro is set-up to sort certain info within the worksheet using various filters. When the sheet is protected the filters no longer work. Any help would be appreciated. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
I faxed an excel worksheet and now cannot print? | Excel Worksheet Functions | |||
Starting MS Excel with a worksheet other than SHEET 1 | Excel Worksheet Functions | |||
How do I replace a worksheet with another worksheet in excel | Excel Worksheet Functions | |||
IN EXCEL 2000, HOW DO I PROTECT MULTIPLE WORKSHEET | Excel Worksheet Functions |