I am trying something since a couple of days and I am really lost about it. Could someone help me about it please.
I would like to concatenate columns in Excel from the first column to the last non-empty column and add a comma between each column.
Following that, I would like to apply the loop from the first line to the last non-empty line.
I succeed to do it with a known number of column (I add the code after) but not when the number of column is unknown.
Range("H2").Select
ActiveCell.FormulaR1C1 = _
"=CONCATENATE(RC[-7],"","",RC[-6],"","",RC[-5],"","",RC[-4],"","",RC[-3],"","",RC[-2])"
Range("H2").Select
Selection.AutoFill Destination:=Range("H2:H" & Range("A2").End(xlDown).Row), Type:=xlFillDefault