bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 734
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I have a sheet in a file where I have potential salaries by district office. I would like to sort this list automatically by district (there might be 5, 10, or 15 offices in one district. I have multiple ranges to rank on this sheet).
I was thinking about creating a helpful column using the rank function to rank the values then use a macro to create a descending sort. I would have many ranges to short because the list is divided into separate categories that will have different sort orders. My macro would include 15 or 20 non-contiguous ranges to sort independently of each
I would have to have a button or a macro to make this happen. I would have to hide the columns from view as well. This file would be going out to various users who may not really be Excel savvy so I might have some explaining to do.
Then I thought maybe I could use one of the worksheet events to trigger the macro without the use of helper column. Is this possible? What would the code look like?
Thank you for your help,
Michael
I was thinking about creating a helpful column using the rank function to rank the values then use a macro to create a descending sort. I would have many ranges to short because the list is divided into separate categories that will have different sort orders. My macro would include 15 or 20 non-contiguous ranges to sort independently of each
I would have to have a button or a macro to make this happen. I would have to hide the columns from view as well. This file would be going out to various users who may not really be Excel savvy so I might have some explaining to do.
Then I thought maybe I could use one of the worksheet events to trigger the macro without the use of helper column. Is this possible? What would the code look like?
Thank you for your help,
Michael