Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Protection and filters?

Using XL 2000

I have posted in worksheet functions aswell because i'm
open to solutions.

I have a workbook containing 3 worksheets.
I need a to prevent users from editing Worksheet1 but
allow the filter functionality.

Any ideas?

Thanks, Paul

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Protection and filters?

Pau

You can allow filtering on a protected sheet using the following code

With Worksheets("Sheet1"
.Unprotect Password:="YourPassword
If Not .AutoFilterMode The
.Range("A1").AutoFilte
End I

.EnableAutoFilter = Tru
.Protect Password:="YourPassword",
contents:=True, userinterfaceonly:=Tru
End Wit

Regard
Rowan
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Protection and filters?

Hi
see your answer in Excel.worksheet.functions

--
Regards
Frank Kabel
Frankfurt, Germany


Paul wrote:
Using XL 2000

I have posted in worksheet functions aswell because i'm
open to solutions.

I have a workbook containing 3 worksheets.
I need a to prevent users from editing Worksheet1 but
allow the filter functionality.

Any ideas?

Thanks, Paul

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Protection and filters?

Many thanks Rowan.
A perfect solution.

Paul

-----Original Message-----
Paul

You can allow filtering on a protected sheet using the

following code:

With Worksheets("Sheet1")
.Unprotect Password:="YourPassword"
If Not .AutoFilterMode Then
.Range("A1").AutoFilter
End If

.EnableAutoFilter = True
.Protect Password:="YourPassword", _
contents:=True, userinterfaceonly:=True
End With

Regards
Rowan
.

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
auto filters and worksheet protection Joanne Excel Worksheet Functions 3 May 11th 07 05:17 AM
Filters, Subtotal & Intacted Results after the filters' Removal kasiopi Excel Discussion (Misc queries) 5 February 24th 06 12:18 PM
Protection and Filters Karen Fasano Excel Worksheet Functions 1 July 29th 05 12:53 PM
Worksheet protection vs filters Paul Excel Discussion (Misc queries) 2 April 13th 05 04:07 PM
Filters on with worksheet Protection on in Sharedworkbook Gary Ulstad Excel Programming 1 February 23rd 04 10:19 PM


All times are GMT +1. The time now is 06:36 AM.

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"