I have a requirement where I am trying to concatenate the values from Cell A1 to M1. The sheets are dynamic.
I am trying to concatenate the values from cell A1 to M1 to a string using VBA.
How to do this ? The sheets are dynamic, so when we select the range I want the sheets to be mentioned in the code as well.
This is how excel generates a macro, if I do the concat on cell N1,
ActiveCell.FormulaR1C1 = "=CONCAT(RC[-13]:RC[-1])"
Thanks. Kindly share your thoughts.