Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JMcG
 
Posts: n/a
Default 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   Report Post  
Paul B
 
Posts: n/a
Default

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   Report Post  
Dave Peterson
 
Posts: n/a
Default

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   Report Post  
JMcG
 
Posts: n/a
Default

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   Report Post  
JMcG
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
I faxed an excel worksheet and now cannot print? C. P. Excel Worksheet Functions 2 February 21st 05 09:28 PM
Starting MS Excel with a worksheet other than SHEET 1 IGNACIO Excel Worksheet Functions 2 February 18th 05 06:29 PM
How do I replace a worksheet with another worksheet in excel Ammnon Excel Worksheet Functions 1 January 12th 05 10:48 AM
IN EXCEL 2000, HOW DO I PROTECT MULTIPLE WORKSHEET ME Excel Worksheet Functions 2 January 7th 05 04:22 PM


All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"