Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
WCM WCM is offline
external usenet poster
 
Posts: 59
Default Sort Contiguous Columns - Danger

I am working on an Excel 2000 VBA project. The users of the main sheet in
this workbook complain that sometimes users will inadvertently sort only the
first few columns of the sheet so that the data in the sheet gets
"discombobulated" - the data in the sorted columns no longer relates properly
to the data in the other, non-sorted columns. For example, if the sheet
contains two columns - firstName and lastName, and the user sorts only the
firstName column in alpha order, the names are no longer properly associated.

Excel does not always warn the user that he is sorting only some of the
columns in the sheet.

Question: Is there a Best Practice for ensuring that users do not sort by
only some (not all) columns in a sheet? Or is there a best method for
ensuring that should the bad sort happen, the records can be returned to
their original state, even after a save?

Thanks in advance for your help ...

Bill
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 464
Default Sort Contiguous Columns - Danger

Always keep a spare copy and protect the Sheet from sorting.



--
Regards
Dave Hawley
www.ozgrid.com
"WCM" wrote in message
...
I am working on an Excel 2000 VBA project. The users of the main sheet in
this workbook complain that sometimes users will inadvertently sort only
the
first few columns of the sheet so that the data in the sheet gets
"discombobulated" - the data in the sorted columns no longer relates
properly
to the data in the other, non-sorted columns. For example, if the sheet
contains two columns - firstName and lastName, and the user sorts only the
firstName column in alpha order, the names are no longer properly
associated.

Excel does not always warn the user that he is sorting only some of the
columns in the sheet.

Question: Is there a Best Practice for ensuring that users do not sort by
only some (not all) columns in a sheet? Or is there a best method for
ensuring that should the bad sort happen, the records can be returned to
their original state, even after a save?

Thanks in advance for your help ...

Bill


  #3   Report Post  
Posted to microsoft.public.excel.misc
WCM WCM is offline
external usenet poster
 
Posts: 59
Default Sort Contiguous Columns - Danger

Thank you, Dave. I beieve you are right about that. Seems the only remedy
would be to unlock all the cells in the sheet, then protect the sheet. But
this removes the ability to sort altogether, which is not ideal. Keeping
regular backup copies is probably the only practical answer.

Bill

"ozgrid.com" wrote:

Always keep a spare copy and protect the Sheet from sorting.



--
Regards
Dave Hawley
www.ozgrid.com
"WCM" wrote in message
...
I am working on an Excel 2000 VBA project. The users of the main sheet in
this workbook complain that sometimes users will inadvertently sort only
the
first few columns of the sheet so that the data in the sheet gets
"discombobulated" - the data in the sorted columns no longer relates
properly
to the data in the other, non-sorted columns. For example, if the sheet
contains two columns - firstName and lastName, and the user sorts only the
firstName column in alpha order, the names are no longer properly
associated.

Excel does not always warn the user that he is sorting only some of the
columns in the sheet.

Question: Is there a Best Practice for ensuring that users do not sort by
only some (not all) columns in a sheet? Or is there a best method for
ensuring that should the bad sort happen, the records can be returned to
their original state, even after a save?

Thanks in advance for your help ...

Bill


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sort Contiguous Columns - Danger

You could give the users a macro to sort the data. Your macro would do the
unprotecting, sorting, and reprotecting.

I like this technique from Debra Dalgleish's site:
http://contextures.com/xlSort02.html#Rectangles
Sort With Invisible Rectangles



WCM wrote:

I am working on an Excel 2000 VBA project. The users of the main sheet in
this workbook complain that sometimes users will inadvertently sort only the
first few columns of the sheet so that the data in the sheet gets
"discombobulated" - the data in the sorted columns no longer relates properly
to the data in the other, non-sorted columns. For example, if the sheet
contains two columns - firstName and lastName, and the user sorts only the
firstName column in alpha order, the names are no longer properly associated.

Excel does not always warn the user that he is sorting only some of the
columns in the sheet.

Question: Is there a Best Practice for ensuring that users do not sort by
only some (not all) columns in a sheet? Or is there a best method for
ensuring that should the bad sort happen, the records can be returned to
their original state, even after a save?

Thanks in advance for your help ...

Bill


--

Dave Peterson
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
Print titles must be contiguous and complete rows or columns SG Excel Discussion (Misc queries) 2 May 20th 23 07:42 PM
Charting with non contiguous columns David Hopper Charts and Charting in Excel 3 April 7th 07 01:00 AM
DCOUNT for non-contiguous columns RiotLoadTime Excel Worksheet Functions 4 July 3rd 06 03:12 PM
How do I reference non-contiguous columns in another sheet and th. Bill Nash Excel Discussion (Misc queries) 3 March 3rd 05 05:47 PM
Is there a maximum number of non-contiguous columns that can be h. Harold Excel Discussion (Misc queries) 6 March 1st 05 09:10 PM


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