Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

How To enable the Sort function for a protected Excel sheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lkjing - 30 Jun 2005 06:27 GMT
After protecting my sheet with a password, I found that the sort function
will be not available to users without the password. Realized Autofilter can
be enabled using codes. What about "sort" function? Thanks.
Dave Peterson - 30 Jun 2005 14:12 GMT
See one reply to your post in .misc.

> After protecting my sheet with a password, I found that the sort function
> will be not available to users without the password. Realized Autofilter can
> be enabled using codes. What about "sort" function? Thanks.

Signature

Dave Peterson

purplemx - 26 Jan 2006 15:51 GMT
Hi

Please try this

Sub Sort()
'
' Sort Macro
' Macro recorded 4/13/2005 by TZDTKQ
'

'
   ActiveSheet.Unprotect password:="PASSWORD"
   Range("D12").Select
   Range(Selection, Selection.End(xlDown)).Select
   Range("D12:D61").Select
   Selection.SORT Key1:=Range("D12"), Order1:=xlAscending, Header:=xlGuess,
_
       OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
   Range("D12").Select
   ActiveSheet.Protect password:=" PASSWORD "
End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.