I have multiple values that I'm reading into an array, but I need to paste those values into a single cell comma separated. Is this possible?
1 Answer
You can Join an array with a given separator
myArray = Array("John","Bob","Mary")
sString = Join(myArray, ",")
msgbox sString
Will give you "John,Bob,Mary" in sString...
To put this into a cell:
Worksheets("Sheet1").Range("A1").Value = sString
1 Comment
Dave
edited to include cell set - just change cell and sheet name to match your own worksheet