View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Arjun Arjun is offline
external usenet poster
 
Posts: 1
Default Macro for sorting within groups

I'm trying to sort within two groups. Here's an example:

Name Number
aw 2
ad 2
ce 1
fv 1

I am trying to sort the groups (with the number 2) alphabetically. I havent
been able to figue out a macro that upon recognizing the 1 can highlight both
the rows containing it. I do have a macro for the group '2', but would really
appreciate it if someone can show me a more general one.

thanks in advance