removing comma in data string
The following two functions should take care of what you need.
Set (your_range) as range
for each cell in your range
cell.value = curval
curval = Replace(curval, " ", "") ' removes any spaces you might
have
curarray = Split(curval, ",", -1, vbTextCompare) 'creates an array
of the values that are separated by the commas
arraynumb = UBound(curarray) 'determines how many values are in the
array
'process the information
next cell
There's probably a better way of taking care of it, but this method
seems to be working well in my current project
Regards,
Thedude
|