The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Excel Forum > Excel VBA Programming


Excel VBA Programming Post questions in this forum if they are related to using Microsoft Excel VBA Programming, Macro's etc.

Hey there!

It looks like you're enjoying but haven't created an account yet. Why not take a minute to register for your own free account now? As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more. Register now!

Already a member? Login at the top of this page to stop seeing this message.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11th June 2009, 05:43 PM
TheGerman
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Protection and Auto filter

------ Register to get rid of these "In Post" ads! ------


Hello,

I have have a Tabel that uses the Auto Filter option, i secured my Sheet with:
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
False, AllowSorting:=True, AllowFiltering:=True

on opening of the document.

when I click on the AutoFilter button to Sort Accending it gives me an error
message "The cell or chart you are trying to change is protected and
therefore read-only"

How can i have the fields protected but let it sort?

thank you,

Daniel Schmidt
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 12th June 2009, 01:15 PM
TheGerman
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default RE: Protection and Auto filter

------ Register to get rid of these "In Post" ads! ------


anyone that can help?


> Hello,
>
> I have have a Tabel that uses the Auto Filter option, i secured my Sheet with:
> ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
> False, AllowSorting:=True, AllowFiltering:=True
>
> on opening of the document.
>
> when I click on the AutoFilter button to Sort Accending it gives me an error
> message "The cell or chart you are trying to change is protected and
> therefore read-only"
>
> How can i have the fields protected but let it sort?
>
> thank you,
>
> Daniel Schmidt

Reply to this post


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 12th June 2009, 01:57 PM
eliano
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Re: Protection and Auto filter

------ Register to get rid of these "In Post" ads! ------


On 12 Giu, 14:11, TheGerman <dschm...@memorialhealthcare.org> wrote:
> anyone that can help?
>
>
>
> > Hello,

>
> > I have have a Tabel that uses the Auto Filter option, i secured my Sheet with:
> > ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
> > * * * * False, AllowSorting:=True, AllowFiltering:=True

>
> > on opening of the document. *

>
> > when I click on the AutoFilter button to Sort Accending it gives me an error
> > message "The cell or chart you are trying to change is protected and
> > therefore read-only"

>
> > How can i have the fields protected but let it sort?

>
> > thank you,

>
> > Daniel Schmidt- Nascondi testo citato

>
> - Mostra testo citato -


Hi German.
If I well understood, try:

Public Sub prova()
ActiveSheet.Unprotect
'your filter instruction or/and
'your sort instructions
ActiveSheet.Protect 'with your parameters
End Sub

Regards
Eliano
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
auto, filter, protection

New topics in Excel VBA Programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent