#1   Report Post  
Posted to microsoft.public.excel.misc
John
 
Posts: n/a
Default Sort a list macro.

Hi, I am creating a sheet that will list who can buy bus passes. Here is the
lay out.

A4 B4 C4 D4 E4 F4 G4 H4
# Last name First Name NB # Last name First Name NB
1 4
2 5
3 6

I believe I need a macro to sort by Last Name. Now rows under A4 and E4
cant change. They will hold the numbers of how many people have been
approved.

As you can see it will have two columns of names per page. It will have 88
names per page, three pages for a total of 264 names.

We are a non-profit organization. We help homeless and low-income people.
These discount bus pass are sold to qualify people and we make no money from
the sales.

Those I know how to use excel my skill level is not up for this. Any help
you can give will be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bill
 
Posts: n/a
Default Sort a list macro.

I not an expert, but here is how I would do it.

1. Rearrange the columns so the columns within which you want to sort rows
are adjacent. In your example, if you don't want to sort Col A and Col E,
make them the first two columns. Use Copy and paste to do this.
2. HIghlight the range in the columns that you do want to sort, and do a
row sort on this data. (e.g. DATA, SORT, select sort field, ascending or
decending, etc.)
3. Using copy and paste, put Col E back where it started.

If this produces the results you need, then select Macros, turn on "start
recording macro, enter macro name, hot key, perform the above operations,
stop recording the macro, and you should be able to resort using the macro.

There is probably a more elegant way to do this, but the above should work
for you.

Bill
--
Bill


"John" wrote:

Hi, I am creating a sheet that will list who can buy bus passes. Here is the
lay out.

A4 B4 C4 D4 E4 F4 G4 H4
# Last name First Name NB # Last name First Name NB
1 4
2 5
3 6

I believe I need a macro to sort by Last Name. Now rows under A4 and E4
cant change. They will hold the numbers of how many people have been
approved.

As you can see it will have two columns of names per page. It will have 88
names per page, three pages for a total of 264 names.

We are a non-profit organization. We help homeless and low-income people.
These discount bus pass are sold to qualify people and we make no money from
the sales.

Those I know how to use excel my skill level is not up for this. Any help
you can give will be appreciated.

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 force a Default sort for a validation list scott56hannah Excel Discussion (Misc queries) 0 April 18th 06 03:05 AM
Randomly Generated List / Macro carl Excel Worksheet Functions 3 April 9th 06 01:14 AM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Sort Macro: Utilizing ComboBox Selection for Key1 through 3 Ranges buddhapenguin Excel Discussion (Misc queries) 0 May 13th 05 03:01 PM
How to create a macro that compares a list to another list Rampa New Users to Excel 1 January 13th 05 01:15 PM


All times are GMT +1. The time now is 11:41 PM.

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"