Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Fix Excel Protection so that it works as published

Your solution is way beyond my pay grade.

"broro183" wrote:


Hi Christopher

I'm trying to overcome exactly the same problem (sorting a protected
sheet) at the moment & am just checking threads to see if there is a
method of adding default arguments to the following "SortSheet" code
which I have attached to a commanbutton. Please note that I have set
the sheet up with "userinterface only" protection using:
Private Sub Workbook_Open()
Dim Password As String
Password = "secret"
Sheets("sheet1").Protect Password:=Password, _
UserInterFaceOnly:=True
End Sub

Add a named range "sort_area", give the below a go & see if it helps -
I think it is much better than asking users not to make errors, after
all we are all human!

Sub SortSheet()
'to allow sheet sorting on the "user interface only" protected sheet &
requires use of a _
named range "Sort_Area"
Range("'" & ActiveWorkbook.Name & "'!Sort_Area").Select
Application.Dialogs(xlDialogSortSpecial).Show
'optional MsgBox "Page is sorted as requested."
End Sub

hth,
Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=501367


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
unhide menu bar in excel - just disappeared Sean Setting up and Configuration of Excel 12 April 4th 23 10:19 AM
#VALUE! error: vlookup works in Excel 2000 but not 2003 Nick Ersdown Excel Discussion (Misc queries) 6 November 25th 05 12:23 PM
saving excel lists in works mokachu Setting up and Configuration of Excel 0 November 2nd 05 10:42 AM
Opening Office Excel file in Works suite DON Excel Discussion (Misc queries) 1 January 30th 05 05:59 AM


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