How do I create a relative position macro?

I want to create a macro that will take the cell I have selected several cells to the side, merge them, and then align them on the left. How do I do this? also I want the macro on a hot key