I have a data set that needs to be concatenated in groups of 48 (sequentially - ie. the first 48 columns in the first row , the second 48 columns in the first row, the third 48 columns in the first row, etc).
I want the code to repeat until I get to the end of the columns.
If the codes places a formula in the destination cell then I will autofill the other rows, if it doesn't then I will need for the code to perform the procedure until it reaches the bottom of the rows (about 28k).
I find a code snippet online that might be resourced somehow...
Any help would be appreciated.
I want the code to repeat until I get to the end of the columns.
If the codes places a formula in the destination cell then I will autofill the other rows, if it doesn't then I will need for the code to perform the procedure until it reaches the bottom of the rows (about 28k).
I find a code snippet online that might be resourced somehow...
Any help would be appreciated.
Code:
<code>
Option Explicit Sub Sample() Dim LastRow As Long Dim Ws As Worksheet Set Ws = Sheets("Sheet1") LastRow = Ws.Range("A" & Ws.Rows.Count).End(xlUp).Row '~~> If your range doesn't have a header Ws.Range("H1:H" & LastRow).Formula = "=A1&B1&C1&D1&E1&F1&G1" '~~> If it does then Ws.Range("H2:H" & LastRow).Formula = "=A2&B2&C2&D2&E2&F2&G2" End Sub</code></pre>