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?
0
Utf
3/25/2010 4:05:01 AM
excel.worksheet.functions 4936 articles. 2 followers. Follow

1 Replies
699 Views

Similar Articles

[PageSpeed] 42

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?
0
Utf
4/6/2010 1:10:01 PM
Reply:

Similar Artilces:

Transform table into calendar format
I have a table with dates (column A) and events (column B). I wanted to know how I automatically create a calendar template with the events I have on this separate sheet. Send me an email to: pashurst <at> auditel.net (change the obvious), and I'll send you a file that does just what you describe. Hope this helps. Pete On Nov 18, 9:55=A0pm, Matheus <Math...@discussions.microsoft.com> wrote: > I have a table with dates (column A) and events (column B). I wanted to k= now > how I automatically create a calendar template with the events I have on = ...

Inserting form values into a table
We have a form with values taken from an sql query that comes from two different tables. We would like to enter the information into a third table. Can some one direct me to code that will do the following: 1. Provide the Insert sql that shows us how to add the form values to the table 2. Show us how to loop while inserting the information into the table (there could be several lines on the form, each must be inserted one at a time). I have worked with Access before and have never had a problem inserting information. However, I cannot quite figure out how to insert informtion through an ...

Exchange 2003 new install can not receive external email.
I have just setup a new Windows Server 2003 standard edition with Exchange 2003 standard edition on it. I have been working for a while trying to get it to receive external email. I can send out and send/ receive internal messages, but when someone trys to send me a message from outside our network they get the following returned mail message This Message was undeliverable due to the following reason: Each of the following recipients was rejected by a remote mail server. The reasons given by the server are included to help you determine why each recipient was rejected. Recipient: <**...

Unlocking a User
I have GP10 and a user entered a password wrong too many times. I am logged into GP and an under 'Admininstration' and do not see a way to unlock the user. Am I in the right place? Where do I need to go? Thanks, John John, Are you enforcing password policies for your users in GP? If so, go to Microsoft Dynamics GP > Tools > Setup > System > User. Enter a temporary password for the user and check the Change Password Next Login box. Provide the user with the temporary password and the system will do the rest. Again, this is all assuming your are enforcing pas...

Using expression builder object
Hi, I'm developing a wizzard in Access which builds import templates for various data sources to a fixed set of tables. In step 3 the users must be able to build an expression ; for instance Left([Fieldx],20) . Now I would like to have a command button on my form which calls the Access expression builder to allow the users to use this to build the expression. This expression will then be stored in a text box linked to the templates table. Anybody know how to call and use this object from VBA code? -- Kind regards Noëlla DoCmd.RunCommand acCmdInvokeBuilder I th...

Using part of a cell in a chart title
I have a chart which should get a title. However, this should be partly be used from a cell e.g. "counted with 5%" 5% should be taken from the cell and used in the title. Is this possible? Hi, Yes it's possible but all of the chart title needs to be in the cell. So you may need to use a helper cell and concatenate text and value. http://www.andypope.info/tips/tip001.htm Cheers Andy -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info "Nicole" <Nicole@discussions.microsoft.com> wrote in message news:5CB7A971-AA7F-4C34-BB42-7DC283AA2958@micro...

Sort ascending, make changes, restore previous order
I've got an AutoFilter in a spreadsheet. I want to sort ascending, mak some changes to some cells, then restore the previous order. Can thi be done easily or will this require some programming?? Thanks in advane! Matt -- BVHi ----------------------------------------------------------------------- BVHis's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=859 View this thread: http://www.excelforum.com/showthread.php?threadid=47508 I'd use a helper column. Put =row() and drag down. Convert it to values (edit|copy, edit|paste special|values) Do all y...

Can I send a recurring e-mail automatically each week
I want to send a e-mail with the same verbiage to the same person once a week and make it a recurrence with no end date. Can I set this up once in Outlook so it is scheduled automatically? -- Microsoft Office 2003 Version Students and Teachers Edition Windows Vista Home Premium Thank-you Happy new Year!! Carl R ...

How do I use traffic lights in excel
I am wanting to use traffic lights in excel that change colour based on the result of a variance cell, ie if the result of the cell is 10 make the traffic light green, if it is 20 make the traffic light amber, if the result is 30 make the traffic light red. How do I do this? Shorty Format>Conditional Formatting>Cell Value is: Note: you can add up to 3 conditions(4 if you count default) Gord Dibben Excel MVP On Wed, 22 Dec 2004 16:35:03 -0800, Shorty <Shorty@discussions.microsoft.com> wrote: >I am wanting to use traffic lights in excel that change colour based on the &g...

Filter recordset using query results
Hi all I have a form based on a query called [qry Quarterly Planning], it lists all Itineraries on the system. On this form you can filter records by specifying a Start and End Date for the [ReviewDate] and/or [Specialist]. It is a subform on a main unbound form, lets call this Subform1. Along side this I have another subform (Subform2) which displays ReviewDates that exist against an Itinerary. In other words Subform1 has a start date of an activity and if the activity lasts longer than 1 day, then the additional dates are stored in Subform2 (ItineraryDates). Currently when I...

How can I change 'Normal' Style for Word e-mails to 'Normal (Web)'?
Hi, I'm using Word as my e-mail editor in Outlook 2003 and want to change the default Style for e-mails from 'Normal' to 'Normal (Web)'. The problem is that new e-mails and replies in HTML format use the 'Normal' Microsoft Word 'Style', and this has no gap after paragraphs. The upshot of this is that when sending an e-mail, I have to press return twice to create a gap, but when the recipient views this, their software shows it as four gaps (the extra carriage return I typed + their correctly viewed HTML carriage return after each line). E.g. I type this: ...

Sorting Data #5
Is there formula or anyway to be able sort the below data into a format that I could create a pivot table on? I spend to many hours doing this every month. Invoice #: 12345 Invoice Date: 1/16/1950 A/P Code: ABC Due Date: 1/16/1950 Total Payable: $100.00 Reference: Freight: Account #: 1234 Description: Name Reference 1 Amount: $100.00 Account #: 4321 Description: Name Reference 2 Amount: $100.00 Account #: 9876 Description: Name Reference 3 Amount: $100.00 Any help would be much appreciated!! You need to show a Before and After version. You still might not get any help, but your ...

can't customize toolbar
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel all i see is document elements, quick tables, charts and smartart graphics. i do not see the main menu or the toolbar button. when i attempt to customize the toolbar, the to menu bar and format bar do not appear where they should. on a website i visited, they advised that i drag and drop the temporary toolbar into the real toolbar. but i can't drag and drop the toolbar. i can only move the temporary toolbar. how do i add the menu bar and format bar for go? You may have hidden the toolbar by accident. Click on the ti...

[b]Can I download Excel data to a MS Access database?[/b]
I've built an Excel 2002 form that I want our internal customers to access from our intranet, and use. Once completed, they will send it to us as an e-mail attachment. I'd like to be able to open it, and somehow download the data from the form into an MS Access 2002 database I've built (so that we don't have to rekey it into the database). Is this possible or even feasible? Any and all help is appreciated. Thanks. :D --------- Message sent via www.excelforums.com Hi in Access check 'File - Import External data' -- Regards Frank Kabel Frankfurt, Germany "...

Using Visio HTML output within frames
Hi, I want to include visio HTML output in a frame of another html file. Unfortunately it is not working. I understood the problem is in vml_*.htm files. It is due to, the target arrtibute(pointing to _parent) in v:shapetype tag and href attribute (pointing to #) in v:shape tag. These attributes should point to "_top" and "<target-html-file>#" respectively inorder to work. I want to change these options while saving .vsd as web page? I would appreciate if you can help me in this regard. <v:shapetype id="VISSHAPE" target="_parent" coor...

Can you only merge up to a certain number of cells
I am working on microsoft excel 2003, I have a sheet that I merged cells starting with line 8 through 43...when I type my information in the merged area I can see all that I am typing...say it goes up to line 30 once I hit the enter key I can only see up to line 20. Even when I print it out it only prints up to line 20...I have checked to make sure there are not locked cells etc. I cannot figure out at all why this is happening...is there only up to a certain number of cells you can merge? From "Excel Specifications and Limits" Length of cell contents (text) ...

Newbie Question: Using Web Services
Hello All. I've been trying to implement Infopath with CRM with no success. I've tried the example, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmbscrm1_2/html/mbs_crminfopathcrmintegration.asp, to no avail. I have followed the example to the letter, but find the information about publishing the Web Service to the server to be somewhat lacking. Admittedly, I am not a programmer, and I am continually running into an error in line 54: xmlDoc.LoadXml(objQuery.ExecuteQuery(objBizUser.WhoAmI(), strAllAccountsFetchXML)); Has anyone else ...

Can anyone help ?
I have created a holiday planner for staff with in are company and i need a formula that gives us only 10% of the total number of staff are off on holiday. would be greatful if anyone could help. Hello - If you have a total somewhere (I would suggest inserting a column on your spreadsheet titled Total and then entering a "1" if the person is going to be out, then total the column of "1"s by entering "=SUM(x:y)" where x=first cell in the range, and y=last cell in the range), in a different cell, enter "=.1*z" where z equals the total of people out...

Can I make messages unable to be forwarded by the receiver?
We are interested in setting up a private email group at work that receives semi-confidential information. Is there a way to make the emails that these users will receive unable to be forwarded to people outside of the group? Make private, or somehow else prevent the information from getting outside of the approved recipient list? no. and you can't keep people from printing it, copying and pasting the contents of it, taking a screen shot of it, etc, etc... "Jonna Kosalko" wrote: > We are interested in setting up a private email group at work that receives ...

set default record to a table
I have a shared db with various front ends (mde). I would like to set a paricular record as my default record, so whenever someone opens up the various db forms it opens up to the same default record. Is this possible? Maybe this is a matter of terminology... In Access, data is stored in tables. Each table has it's own records (collections of related data). When you say you want a "record" to be the default one pulled up by everyone, how do you know they are all using their different forms to look at the same data (i.e., table)? Next, why? What is it about ...

can't add groups to public folders
I'm having a problem with my public folders - I can't add groups to them. I used to be able to, and now the members in a given group are unable to access that particular public folder. I can add individual users fine, but not groups. Anyone know how to fix this? Do you have sufficient rights in AD? What I am getting at, is that you need rights to change a group type to security. -- regards, Michael Abbaticchio MVP for Exchange Server http://exchange.mvps.org "Glenn" <nospam@yahoo.com> wrote in message news:%23N3yrgRoEHA.3324@TK2MSFTNGP10.phx.gbl... > I&...

Can't view messages with Autopreview
My current view is set to preview all items, however, my mail is not displayed in autopreview ...

Purchase Resolution Tables
PRW tables in Great Plains - are these tables temporary tables populated only when the purchase resolution is run? Im asking because i want to extract data in crystal from the PRW40034 table but cant seen any PRW tables via crystal. Thanks Theo :) I reckon these PRW tables are names of once before existing tables in earlier versions of GP - i believe the tables I want are the MPO tables If this is 100% (im at about 95% with this) its a shame MBS havent cleared up the table list to NOT show tables that are no longer used. Theo :) "Theo" wrote: > PRW tables in Great Plains -...

Distrebution List to send as internal user
I trying to sent up a solution that when someone emails sales@mydomain.com it should... Distribute it to the sales team. Look like it's comming from Sales@... NOT user@outsidedomain.com Any ideas? Thanks Peretz Stern wrote: > I trying to sent up a solution that when someone emails > sales@mydomain.com it should... > > Distribute it to the sales team. > Look like it's comming from Sales@... NOT user@outsidedomain.com > > Any ideas? Thanks If someone outside your office sends mail to a DL, it will be from the original sender. I can't think of any way around...

Why can't I edit the Schema for a Knowledge Base Article in CRM 3.
Why can't I edit the Schema for a Knowledge Base Article? It seems to me that you could do this in 1.2. I just want to add some custom fields. ...