#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default Sort Column

I have a sheet with a range A6:BP6 and I want to be able to sort by column
after a message prompt to select the column to sort by. Is this possible?

I have tried autofilter and it and found I needed to unlock the workbook
before accessing this feature, furthermore, for some reason it wouldn't sort
1-20 correctly, instead it started sorting from 10. Perhaps there is a
problem with the workbook?

Anyway it would be helpful if I could use a command button to run a macro
for this task. I already have a macro called Protect and another called
UnProtect to get around the locked workbook.

Any assistance would be appreciated.

Regards
Tanya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Sort Column

Range A6:BP6 is one row.

How do you expect to sort one row by a column?

Do you mean you want to sort columns A:BP starting at row 6?

What is the full range of your data and are you sure 1-20 are numbers and not
text?


Gord Dibben MS Excel MVP

On Thu, 6 Dec 2007 15:01:01 -0800, Tanya
wrote:

I have a sheet with a range A6:BP6 and I want to be able to sort by column
after a message prompt to select the column to sort by. Is this possible?

I have tried autofilter and it and found I needed to unlock the workbook
before accessing this feature, furthermore, for some reason it wouldn't sort
1-20 correctly, instead it started sorting from 10. Perhaps there is a
problem with the workbook?

Anyway it would be helpful if I could use a command button to run a macro
for this task. I already have a macro called Protect and another called
UnProtect to get around the locked workbook.

Any assistance would be appreciated.

Regards
Tanya


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default Sort Column

Sorry Gord you are quite right,
Range is A6:BP306
Thanks

"Gord Dibben" wrote:

Range A6:BP6 is one row.

How do you expect to sort one row by a column?

Do you mean you want to sort columns A:BP starting at row 6?

What is the full range of your data and are you sure 1-20 are numbers and not
text?


Gord Dibben MS Excel MVP

On Thu, 6 Dec 2007 15:01:01 -0800, Tanya
wrote:

I have a sheet with a range A6:BP6 and I want to be able to sort by column
after a message prompt to select the column to sort by. Is this possible?

I have tried autofilter and it and found I needed to unlock the workbook
before accessing this feature, furthermore, for some reason it wouldn't sort
1-20 correctly, instead it started sorting from 10. Perhaps there is a
problem with the workbook?

Anyway it would be helpful if I could use a command button to run a macro
for this task. I already have a macro called Protect and another called
UnProtect to get around the locked workbook.

Any assistance would be appreciated.

Regards
Tanya



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default Sort Column

Also Gord
Column BN has the Rank formula, hence I would like to list students in order
of rank, alternatively i may like to sort by Class and LName in column A
Again I am sorry for the vagueness. This has been difficult to explain.
In the foreseeable future I can only see a need to rank all classes [300
students] and perhaps by only the top 10 or 20.

"Gord Dibben" wrote:

Range A6:BP6 is one row.

How do you expect to sort one row by a column?

Do you mean you want to sort columns A:BP starting at row 6?

What is the full range of your data and are you sure 1-20 are numbers and not
text?


Gord Dibben MS Excel MVP

On Thu, 6 Dec 2007 15:01:01 -0800, Tanya
wrote:

I have a sheet with a range A6:BP6 and I want to be able to sort by column
after a message prompt to select the column to sort by. Is this possible?

I have tried autofilter and it and found I needed to unlock the workbook
before accessing this feature, furthermore, for some reason it wouldn't sort
1-20 correctly, instead it started sorting from 10. Perhaps there is a
problem with the workbook?

Anyway it would be helpful if I could use a command button to run a macro
for this task. I already have a macro called Protect and another called
UnProtect to get around the locked workbook.

Any assistance would be appreciated.

Regards
Tanya



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
How to sort entire spreadsheet by one column sort jbclem Excel Discussion (Misc queries) 6 April 2nd 23 08:06 PM
How to sort without including column headings in sort OPDvolunteer Excel Discussion (Misc queries) 4 March 11th 09 04:08 PM
Auto-Sort Won't Sort All Column Cells TikiTembo Excel Discussion (Misc queries) 1 March 25th 08 07:00 PM
data, sort option is grayed. how to sort on a column? Steve Richter Excel Discussion (Misc queries) 1 September 25th 07 03:25 PM
How can I sort one column and have the entire row sort. (binding) Blue Excel Worksheet Functions 10 November 13th 05 07:09 PM


All times are GMT +1. The time now is 01:56 AM.

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"