I want to split a string with multiple delimiters using Excel VBA. One of the strings is:
d1-d2 d3 d4
We have a dash and a space as two delimiters. I tried the split function but it only does it with one delimiter.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could first do a
Replaceon the string first and then do the split: