Return the value from each row for a particular column of the datalist, as a delimited list
The column index or name
Quote (with escaping) every element of the string with this char
If duplicate values exist, only add each value to the list once (assumes that the DataList is sorted so that duplicates are in adjacent rows)
The delimiter to use
Debug.Print lst.ColValsAsDelimList "ProductName" -> Chai,Chang,Aniseed Syrup,Chef Anton's Cajun Seasoning,Chef Anton's Gumbo Mix,Grandma's Boysenberry Spread Debug.Print lst.ColValsAsDelimList "ProductName", True, ";" -> "Chai";"Chang";"Aniseed Syrup";"Chef Anton's Cajun Seasoning";"Chef Anton's Gumbo Mix";"Grandma's Boysenberry Spread"