I need an Excel macro to join seven columns of data on each row until the end of the data is reached. For example if I have a formula like this:
=A1&B1&C1&D1&E1&F1&G1
How can I write the macro so that it increments for every row to the end of the file in a sequence like this?
=A1&B1&C1&D1&E1&F1&G1
=A2&B2&C2&D2&E2&F2&G2
=A3&B3&C3&D3&E3&F3&G3
With so many answers, the main focus on what assylias and I were highlighting has gone to waste 🙂
However, if you still want a VBA answer. Use this method. This is much faster than
Loopingor anAutofill.If you have 1000’s of rows then you might want to switch off
Screenupdatingand changeCalculationto Manual before you run the code and then reset them at the end of the code.