Here is a macro that should work for you. It will parse one line of one or more comma separated values (CSV) into individual KM Variables.
For more information, see the wiki Searching the Forum for Answers section.