Moonbeam111
Board Regular
- Joined
- Sep 24, 2018
- Messages
- 73
- Office Version
- 365
- 2010
Hey everyone. Can a VBA code do what I'm hoping in can do here. It's pretty simple to understand but difficult to implement. Say I have a column A and B.
Say I have this list in Column A's first 4 cells
James
Robert
John
Michael
And this list in column B first 4 cells
Michelle
Paul
Lauren
Mike
How would I get a vba code to automatically alphabetize both columns. I know how to sort a single column at a time. But if I wanted to sort both columns starting with column A and ending with column B (even having to move cells from column A to B or vice verca, is that doable?
For example the end result would look like this:
Column A
James
John
Lauren
Michael
Column B
Michelle
Mike
Paul
Robert
Say I have this list in Column A's first 4 cells
James
Robert
John
Michael
And this list in column B first 4 cells
Michelle
Paul
Lauren
Mike
How would I get a vba code to automatically alphabetize both columns. I know how to sort a single column at a time. But if I wanted to sort both columns starting with column A and ending with column B (even having to move cells from column A to B or vice verca, is that doable?
For example the end result would look like this:
Column A
James
John
Lauren
Michael
Column B
Michelle
Mike
Paul
Robert