Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to sort entire spreadsheet by one column sort | Excel Discussion (Misc queries) | |||
How to sort without including column headings in sort | Excel Discussion (Misc queries) | |||
Auto-Sort Won't Sort All Column Cells | Excel Discussion (Misc queries) | |||
data, sort option is grayed. how to sort on a column? | Excel Discussion (Misc queries) | |||
How can I sort one column and have the entire row sort. (binding) | Excel Worksheet Functions |