Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How can I allow users to sort a protected table using dropdowns?

I'm trying to create a table where users can't edit the content of the cells
but can edit the ordering of the table- what's the best way to achieve this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default How can I allow users to sort a protected table using dropdowns?

Stuart,

I've written this code some time back for one of my users and it works
perfectly for them. Maybe you would like to adapt to suit your needs..

Sub Sort_pr_range()
ActiveSheet.Unprotect 'Unprotect the sheet
Range("A1:F100").Sort Key1:=Range("B1"), _ 'where "B1" will be the sort
pri
Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
ActiveSheet.Protect 'Protect the sheet
End Sub

If this does not work for you then please come back to us and we will assist
you.

--

Thank you and Regards

Garreth Lombard


"Stuart Hodge" wrote:

I'm trying to create a table where users can't edit the content of the cells
but can edit the ordering of the table- what's the best way to achieve this?

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
Allowing users to use filters and sort on protected pivot table Michael Excel Discussion (Misc queries) 0 October 15th 09 05:29 PM
Allowing users to use filters and sort on protected pivot table Michael Excel Discussion (Misc queries) 0 October 15th 09 05:18 PM
Protected worksheet allow users teelius Excel Discussion (Misc queries) 1 June 12th 08 09:04 PM
Can't uncheck boxes in Pivot Table dropdowns Zamboni Excel Discussion (Misc queries) 0 February 5th 08 04:04 PM
make Pivot table show only available values in dropdowns Yaron Assa Excel Discussion (Misc queries) 2 April 3rd 06 07:39 AM


All times are GMT +1. The time now is 07:00 PM.

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"