I'm not quite there yet myself, but I'm getting close.

You can keep two copies of the macro file (files?), one for solo and one for boxing. Just replace the file in the game directory with the one you want before you start the game. You might even extend this to the entire WTF directory to have different key bindings and action bar layouts.