Disarmonious
Board Regular
- Joined
- Oct 31, 2016
- Messages
- 144
I have 6 columns (cells L3 and O3 are labeled "Name", cells M3 and P3 are labeled "ID", and cells N3 and Q3 are labeled "Location"). I have a button named "Sort". I would like to create a macro that would sort the names alphabetically when pressed. I also need the information in the neighboring column/cells to follow the names as they move up/down when sorting. Example;
Johnson, Shirley 12478 Forest Areno, Gilbert 61475 Mountain
Storm, Jack 45164 Mountain Gaston, Alex 33413 Lake
Fredrick, Kenny 10141 Lake Zildan, Gus 41741 Forest
When the "Sort" button is pressed, I want the names to arrange like this;
cells (L3, M3, and N3)
Areno, Gilbert 61475 Mountain
Essentially, when the names are sorted alphabetically, their ID and Location follows. Hope this helps...
Johnson, Shirley 12478 Forest Areno, Gilbert 61475 Mountain
Storm, Jack 45164 Mountain Gaston, Alex 33413 Lake
Fredrick, Kenny 10141 Lake Zildan, Gus 41741 Forest
When the "Sort" button is pressed, I want the names to arrange like this;
cells (L3, M3, and N3)
Areno, Gilbert 61475 Mountain
Fredrick, Kenny 10141 Lake
Gaston, Alex 33413 Lake
cells (O3, P3, and Q3)
</strike>Zildan, Gus 41741 Forest
Gaston, Alex 33413 Lake
cells (O3, P3, and Q3)
Johnson, Shirley 12478 Forest
Storm, Jack 45164 Mountain <strike></strike>Zildan, Gus 41741 Forest
Essentially, when the names are sorted alphabetically, their ID and Location follows. Hope this helps...
Last edited: