brunotripod
New Member
- Joined
- May 16, 2011
- Messages
- 2
I have an Excel table that is a linked list to SharePoint. When data from a multiple choice field in the list syncs to Excel, the multiple choice values appear as a single line of text delimited by ";#" in the Excel table cells. I would like to convert the delimited text to separate lines in the cell (carriage returned). How do I write the VB code to loop through each cell in the table column array and convert the text?
Example: for each sales opportunity in a SharePoint list, a sales rep picks any combination of sales activities from multiple choice options. The data comes into Excel like this:
[Sales Opportunity] [Activity]
["Customer1"] ["Activity1;#Activity2;#Activity3"]
["Customer2"] ["Activity2;#Activity5;#Activity7"]
I would love to have code that loops through the [Activity] column and changes the cell contents to:
[Sales Opportunity] [Activity]
["Customer1"] ["Activity1
Activity2
Activity3"]
["Customer2"] ["Activity2
Activity5
Activity7"]
Example: for each sales opportunity in a SharePoint list, a sales rep picks any combination of sales activities from multiple choice options. The data comes into Excel like this:
[Sales Opportunity] [Activity]
["Customer1"] ["Activity1;#Activity2;#Activity3"]
["Customer2"] ["Activity2;#Activity5;#Activity7"]
I would love to have code that loops through the [Activity] column and changes the cell contents to:
[Sales Opportunity] [Activity]
["Customer1"] ["Activity1
Activity2
Activity3"]
["Customer2"] ["Activity2
Activity5
Activity7"]