ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   sorting columns (https://www.excelbanter.com/excel-programming/341291-sorting-columns.html)

Paula

sorting columns
 
I have a spreadsheet with employee names as column headings and property
numbers as rows. I would like, when I have to add a new employee into the
mix, to be able to set up a macro to insert a column, add in the employees
name, then get him/her into the correct spot alphabetically. Is there a way
to do this?

Thanks - Paula

Tom Ogilvy

sorting columns
 
One way would be to add the name on the end, then do a horizontal sort. You
can get the code by performing the task manually with the macro recorder
turned on.

--
Regards,
Tom Ogilvy


"Paula" wrote in message
...
I have a spreadsheet with employee names as column headings and property
numbers as rows. I would like, when I have to add a new employee into the
mix, to be able to set up a macro to insert a column, add in the employees
name, then get him/her into the correct spot alphabetically. Is there a

way
to do this?

Thanks - Paula





All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com