#1   Report Post  
Sprinks
 
Posts: n/a
Default Sort Macro

I've been working on a macro to resort an alphanumeric list to avoid:

A1
A10
A2

to rather result in:

A1
A2
A10

I have a macro that inserts a leading zero, then I manually sort, then
another macro removes the zero. I'd like to combine them into a single
subroutine, but I don't know how to sort the currently selected range.

Can anyone help?

Thank you.
Sprinks
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Selection.Sort ...

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sprinks" wrote in message
...
I've been working on a macro to resort an alphanumeric list to avoid:

A1
A10
A2

to rather result in:

A1
A2
A10

I have a macro that inserts a leading zero, then I manually sort, then
another macro removes the zero. I'd like to combine them into a single
subroutine, but I don't know how to sort the currently selected range.

Can anyone help?

Thank you.
Sprinks



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
Using a MACRO to sort data BAM718 Excel Worksheet Functions 5 April 16th 05 01:40 PM
Using a macro to sort your data in alphabetical order? Carrie Excel Discussion (Misc queries) 1 April 14th 05 03:07 PM
Using Macro to Sort Names, Numbers & addresses Tareq Excel Worksheet Functions 1 March 1st 05 02:08 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Macro to sort by cell colour CoZ Excel Worksheet Functions 1 November 16th 04 05:52 PM


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