Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
WT WT is offline
external usenet poster
 
Posts: 16
Default Filter on a protected page

When I place filter on the column titles and then protect the page the
filters are inoperable. Any way to change that??
--
Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Filter on a protected page

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
'.EnableOutlining = True
.EnableAutoFilter = True
'If .FilterMode Then
' .ShowAllData
'End If
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the allow autofilter setting under tools|Protection|protect sheet, but that
won't help when you're filtering via code.)

WT wrote:

When I place filter on the column titles and then protect the page the
filters are inoperable. Any way to change that??
--
Thank you


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
WT WT is offline
external usenet poster
 
Posts: 16
Default Filter on a protected page

Thank you, I take it the only way is to use code. Does this code work in a
multi-user workbook (shared)?
--
Thank you


"Dave Peterson" wrote:

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
'.EnableOutlining = True
.EnableAutoFilter = True
'If .FilterMode Then
' .ShowAllData
'End If
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the allow autofilter setting under tools|Protection|protect sheet, but that
won't help when you're filtering via code.)

WT wrote:

When I place filter on the column titles and then protect the page the
filters are inoperable. Any way to change that??
--
Thank you


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default Filter on a protected page

I tried this and it doesn't seem to work with 2003. Do you have another
option?

Thanks,
Heidi

"Dave Peterson" wrote:

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
'.EnableOutlining = True
.EnableAutoFilter = True
'If .FilterMode Then
' .ShowAllData
'End If
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the allow autofilter setting under tools|Protection|protect sheet, but that
won't help when you're filtering via code.)

WT wrote:

When I place filter on the column titles and then protect the page the
filters are inoperable. Any way to change that??
--
Thank you


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default Filter on a protected page

I figured out the filters What about subtotals?

"Heidi" wrote:

I tried this and it doesn't seem to work with 2003. Do you have another
option?

Thanks,
Heidi

"Dave Peterson" wrote:

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
'.EnableOutlining = True
.EnableAutoFilter = True
'If .FilterMode Then
' .ShowAllData
'End If
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the allow autofilter setting under tools|Protection|protect sheet, but that
won't help when you're filtering via code.)

WT wrote:

When I place filter on the column titles and then protect the page the
filters are inoperable. Any way to change that??
--
Thank you


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Filter on a protected page

It worked fine for me in xl2003.

What part didn't work for you?

Post the code that you're having trouble with.

Personally, I wouldn't use subtotals and autofilters on the same worksheet.
They don't work well with each other.

Heidi wrote:

I figured out the filters What about subtotals?

"Heidi" wrote:

I tried this and it doesn't seem to work with 2003. Do you have another
option?

Thanks,
Heidi

"Dave Peterson" wrote:

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
'.EnableOutlining = True
.EnableAutoFilter = True
'If .FilterMode Then
' .ShowAllData
'End If
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the allow autofilter setting under tools|Protection|protect sheet, but that
won't help when you're filtering via code.)

WT wrote:

When I place filter on the column titles and then protect the page the
filters are inoperable. Any way to change that??
--
Thank you

--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Filter on a protected page

I got this to work fine in 2003, but it fails again when workbook is shared :-(

"WT" wrote:

Thank you, I take it the only way is to use code. Does this code work in a
multi-user workbook (shared)?
--
Thank you


"Dave Peterson" wrote:

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
'.EnableOutlining = True
.EnableAutoFilter = True
'If .FilterMode Then
' .ShowAllData
'End If
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the allow autofilter setting under tools|Protection|protect sheet, but that
won't help when you're filtering via code.)

WT wrote:

When I place filter on the column titles and then protect the page the
filters are inoperable. Any way to change that??
--
Thank you


--

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
Using auto filter after my worksheet is protected LY Excel Worksheet Functions 2 July 28th 08 12:10 PM
filter on a protected sheet peter Setting up and Configuration of Excel 4 July 11th 06 12:04 AM
Auto Filter with Protected Worksheet JohnGuts Excel Worksheet Functions 4 April 24th 06 09:14 AM
Data Filter in protected sheet Rao Ratan Singh New Users to Excel 1 January 19th 06 03:37 PM
Filter not working in a protected file jijy Excel Worksheet Functions 1 August 3rd 05 06:02 PM


All times are GMT +1. The time now is 04:11 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"