Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
aehan
 
Posts: n/a
Default AutoFilter on Protected Worksheet Excel 2003

Has anyone else come across this, or am I doing something wrong? In Excel
2003 I protected a worksheet, enabling the AutoFilter in the list of
protection options. However, even though I did this, I couldn't turn
AutoFilter on. I looked up help, which said that enabling the AutoFilter in
the protection options is all you had to do. It also gave some code for use
in earlier versions. I used the code and the AutFilter works!! However, it
definitely doesn't simply by enabling it in the list of protection options.
Has anyone else come across this? the code is:

Sub test()

Results.Protect Password:="test", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
Results.EnableAutoFilter = True
End Sub

This solution works perfectly, but I am frustrated that the simple option
for Excel 2003 doesn't seem to work. I train other people who don't
necessarily understand code.

Cheers
Aehan
  #2   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default AutoFilter on Protected Worksheet Excel 2003

When you protect the worksheet, and enable AutoFilter in the list, it
allows users to use an existing AutoFilter, but they can't create a new one.

There's sample code here that checks for a filter when opening a
workbook, then protects the sheet:

http://www.contextures.com/xlautofilter03.html#Protect

aehan wrote:
Has anyone else come across this, or am I doing something wrong? In Excel
2003 I protected a worksheet, enabling the AutoFilter in the list of
protection options. However, even though I did this, I couldn't turn
AutoFilter on. I looked up help, which said that enabling the AutoFilter in
the protection options is all you had to do. It also gave some code for use
in earlier versions. I used the code and the AutFilter works!! However, it
definitely doesn't simply by enabling it in the list of protection options.
Has anyone else come across this? the code is:

Sub test()

Results.Protect Password:="test", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
Results.EnableAutoFilter = True
End Sub

This solution works perfectly, but I am frustrated that the simple option
for Excel 2003 doesn't seem to work. I train other people who don't
necessarily understand code.

Cheers
Aehan



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.misc
aehan
 
Posts: n/a
Default AutoFilter on Protected Worksheet Excel 2003

Thanks for the reply. I tried it out and yes, if AutoFilter is applied
before protecting the sheet, the option to allow AutoFilter works. However,
Microsoft don't explain that. In their help on the subject, they say:

On the Tools menu in Excel 2003 or 2002, point to Protection and then click
Protect Sheet. The Protect Sheet dialog box appears.
From the Allow all users of this worksheet to list, select Use AutoFilter.

That is confusing for everyday users. Perhaps they should change it to
reflect your explanation. Thanks very much for your help.

Cheers



"Debra Dalgleish" wrote:

When you protect the worksheet, and enable AutoFilter in the list, it
allows users to use an existing AutoFilter, but they can't create a new one.

There's sample code here that checks for a filter when opening a
workbook, then protects the sheet:

http://www.contextures.com/xlautofilter03.html#Protect

aehan wrote:
Has anyone else come across this, or am I doing something wrong? In Excel
2003 I protected a worksheet, enabling the AutoFilter in the list of
protection options. However, even though I did this, I couldn't turn
AutoFilter on. I looked up help, which said that enabling the AutoFilter in
the protection options is all you had to do. It also gave some code for use
in earlier versions. I used the code and the AutFilter works!! However, it
definitely doesn't simply by enabling it in the list of protection options.
Has anyone else come across this? the code is:

Sub test()

Results.Protect Password:="test", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
Results.EnableAutoFilter = True
End Sub

This solution works perfectly, but I am frustrated that the simple option
for Excel 2003 doesn't seem to work. I train other people who don't
necessarily understand code.

Cheers
Aehan



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default AutoFilter on Protected Worksheet Excel 2003

Lots of people agree with you.

In fact, if you're looking for explanations for other stuff, you may want to
bookmark Debra's site:
http://www.contextures.com/

Then you can visit her site first and be happy or visit it after you're
frustrated with MS's help <vbg.

aehan wrote:

Thanks for the reply. I tried it out and yes, if AutoFilter is applied
before protecting the sheet, the option to allow AutoFilter works. However,
Microsoft don't explain that. In their help on the subject, they say:

On the Tools menu in Excel 2003 or 2002, point to Protection and then click
Protect Sheet. The Protect Sheet dialog box appears.
From the Allow all users of this worksheet to list, select Use AutoFilter.

That is confusing for everyday users. Perhaps they should change it to
reflect your explanation. Thanks very much for your help.

Cheers

"Debra Dalgleish" wrote:

When you protect the worksheet, and enable AutoFilter in the list, it
allows users to use an existing AutoFilter, but they can't create a new one.

There's sample code here that checks for a filter when opening a
workbook, then protects the sheet:

http://www.contextures.com/xlautofilter03.html#Protect

aehan wrote:
Has anyone else come across this, or am I doing something wrong? In Excel
2003 I protected a worksheet, enabling the AutoFilter in the list of
protection options. However, even though I did this, I couldn't turn
AutoFilter on. I looked up help, which said that enabling the AutoFilter in
the protection options is all you had to do. It also gave some code for use
in earlier versions. I used the code and the AutFilter works!! However, it
definitely doesn't simply by enabling it in the list of protection options.
Has anyone else come across this? the code is:

Sub test()

Results.Protect Password:="test", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
Results.EnableAutoFilter = True
End Sub

This solution works perfectly, but I am frustrated that the simple option
for Excel 2003 doesn't seem to work. I train other people who don't
necessarily understand code.

Cheers
Aehan



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
aehan
 
Posts: n/a
Default AutoFilter on Protected Worksheet Excel 2003

Thanks for the tip!

"Dave Peterson" wrote:

Lots of people agree with you.

In fact, if you're looking for explanations for other stuff, you may want to
bookmark Debra's site:
http://www.contextures.com/

Then you can visit her site first and be happy or visit it after you're
frustrated with MS's help <vbg.

aehan wrote:

Thanks for the reply. I tried it out and yes, if AutoFilter is applied
before protecting the sheet, the option to allow AutoFilter works. However,
Microsoft don't explain that. In their help on the subject, they say:

On the Tools menu in Excel 2003 or 2002, point to Protection and then click
Protect Sheet. The Protect Sheet dialog box appears.
From the Allow all users of this worksheet to list, select Use AutoFilter.

That is confusing for everyday users. Perhaps they should change it to
reflect your explanation. Thanks very much for your help.

Cheers

"Debra Dalgleish" wrote:

When you protect the worksheet, and enable AutoFilter in the list, it
allows users to use an existing AutoFilter, but they can't create a new one.

There's sample code here that checks for a filter when opening a
workbook, then protects the sheet:

http://www.contextures.com/xlautofilter03.html#Protect

aehan wrote:
Has anyone else come across this, or am I doing something wrong? In Excel
2003 I protected a worksheet, enabling the AutoFilter in the list of
protection options. However, even though I did this, I couldn't turn
AutoFilter on. I looked up help, which said that enabling the AutoFilter in
the protection options is all you had to do. It also gave some code for use
in earlier versions. I used the code and the AutFilter works!! However, it
definitely doesn't simply by enabling it in the list of protection options.
Has anyone else come across this? the code is:

Sub test()

Results.Protect Password:="test", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
Results.EnableAutoFilter = True
End Sub

This solution works perfectly, but I am frustrated that the simple option
for Excel 2003 doesn't seem to work. I train other people who don't
necessarily understand code.

Cheers
Aehan


--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default AutoFilter on Protected Worksheet Excel 2003

Does xl2003 allow .EnableSorting like it does .EnableAutoFilter? I have a
worksheet with several protected columns (formulas). Locations will maintain
their own data so I can't unprotect the cells, but need to allow user
functionality, including filering and sorting rows.

I have a question about my auto_open script (below). Some of these
functions work and some do not. For example, deleting rows and sorting are
not allowed, but outlining, autofiltering, formatting rows is. Do you know
what might be causing that and/or what the possible solution is?

Option Explicit
Sub auto_open()
With Worksheets("Outlook")
.Protect Password:="password", userinterfaceonly:=True,
DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True, AllowInsertingRows:=True,
AllowDeletingRows:=True, AllowFiltering:=True, AllowSorting:=True
.EnableOutlining = True
.EnableAutoFilter = True
End With
End Sub



"Dave Peterson" wrote:

Lots of people agree with you.

In fact, if you're looking for explanations for other stuff, you may want to
bookmark Debra's site:
http://www.contextures.com/

Then you can visit her site first and be happy or visit it after you're
frustrated with MS's help <vbg.

aehan wrote:

Thanks for the reply. I tried it out and yes, if AutoFilter is applied
before protecting the sheet, the option to allow AutoFilter works. However,
Microsoft don't explain that. In their help on the subject, they say:

On the Tools menu in Excel 2003 or 2002, point to Protection and then click
Protect Sheet. The Protect Sheet dialog box appears.
From the Allow all users of this worksheet to list, select Use AutoFilter.

That is confusing for everyday users. Perhaps they should change it to
reflect your explanation. Thanks very much for your help.

Cheers

"Debra Dalgleish" wrote:

When you protect the worksheet, and enable AutoFilter in the list, it
allows users to use an existing AutoFilter, but they can't create a new one.

There's sample code here that checks for a filter when opening a
workbook, then protects the sheet:

http://www.contextures.com/xlautofilter03.html#Protect

aehan wrote:
Has anyone else come across this, or am I doing something wrong? In Excel
2003 I protected a worksheet, enabling the AutoFilter in the list of
protection options. However, even though I did this, I couldn't turn
AutoFilter on. I looked up help, which said that enabling the AutoFilter in
the protection options is all you had to do. It also gave some code for use
in earlier versions. I used the code and the AutFilter works!! However, it
definitely doesn't simply by enabling it in the list of protection options.
Has anyone else come across this? the code is:

Sub test()

Results.Protect Password:="test", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
Results.EnableAutoFilter = True
End Sub

This solution works perfectly, but I am frustrated that the simple option
for Excel 2003 doesn't seem to work. I train other people who don't
necessarily understand code.

Cheers
Aehan


--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default AutoFilter on Protected Worksheet Excel 2003

Hi

I'm no expert, which is why I ask the forum so many questions! However, you
can't delete a row or column that has a protected cell in it, the same thing
applies to sorts. Have you tried validating the formula rather than
protecting it? That way the formula can't be overwritten, but all the
functionality of Excel remains. That's what I tend to do, and you don't need
any code!

Best wishes
Aehan

"David R" wrote:

Does xl2003 allow .EnableSorting like it does .EnableAutoFilter? I have a
worksheet with several protected columns (formulas). Locations will maintain
their own data so I can't unprotect the cells, but need to allow user
functionality, including filering and sorting rows.

I have a question about my auto_open script (below). Some of these
functions work and some do not. For example, deleting rows and sorting are
not allowed, but outlining, autofiltering, formatting rows is. Do you know
what might be causing that and/or what the possible solution is?

Option Explicit
Sub auto_open()
With Worksheets("Outlook")
.Protect Password:="password", userinterfaceonly:=True,
DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True, AllowInsertingRows:=True,
AllowDeletingRows:=True, AllowFiltering:=True, AllowSorting:=True
.EnableOutlining = True
.EnableAutoFilter = True
End With
End Sub



"Dave Peterson" wrote:

Lots of people agree with you.

In fact, if you're looking for explanations for other stuff, you may want to
bookmark Debra's site:
http://www.contextures.com/

Then you can visit her site first and be happy or visit it after you're
frustrated with MS's help <vbg.

aehan wrote:

Thanks for the reply. I tried it out and yes, if AutoFilter is applied
before protecting the sheet, the option to allow AutoFilter works. However,
Microsoft don't explain that. In their help on the subject, they say:

On the Tools menu in Excel 2003 or 2002, point to Protection and then click
Protect Sheet. The Protect Sheet dialog box appears.
From the Allow all users of this worksheet to list, select Use AutoFilter.

That is confusing for everyday users. Perhaps they should change it to
reflect your explanation. Thanks very much for your help.

Cheers

"Debra Dalgleish" wrote:

When you protect the worksheet, and enable AutoFilter in the list, it
allows users to use an existing AutoFilter, but they can't create a new one.

There's sample code here that checks for a filter when opening a
workbook, then protects the sheet:

http://www.contextures.com/xlautofilter03.html#Protect

aehan wrote:
Has anyone else come across this, or am I doing something wrong? In Excel
2003 I protected a worksheet, enabling the AutoFilter in the list of
protection options. However, even though I did this, I couldn't turn
AutoFilter on. I looked up help, which said that enabling the AutoFilter in
the protection options is all you had to do. It also gave some code for use
in earlier versions. I used the code and the AutFilter works!! However, it
definitely doesn't simply by enabling it in the list of protection options.
Has anyone else come across this? the code is:

Sub test()

Results.Protect Password:="test", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
Results.EnableAutoFilter = True
End Sub

This solution works perfectly, but I am frustrated that the simple option
for Excel 2003 doesn't seem to work. I train other people who don't
necessarily understand code.

Cheers
Aehan


--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



--

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
Excel 2003, Convert EXISTING Worksheet Data to XML? [email protected] Excel Discussion (Misc queries) 4 November 16th 05 04:45 AM
Excel 2003 - Linking Formulas, Worksheet to Worksheet windsong Excel Discussion (Misc queries) 4 November 15th 05 03:10 PM
How can I do a "Save As" on a protected excel worksheet Janedola Excel Worksheet Functions 0 April 22nd 05 02:06 AM
How do I show protected cells in an EXCEL worksheet laurentdada Excel Discussion (Misc queries) 3 April 19th 05 01:45 PM


All times are GMT +1. The time now is 05:29 PM.

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

About Us

"It's about Microsoft Excel"