I am looking for a way to split text at the space character but only if the space character is not preceeded by a comma. The following are some examples of a strings
P3, 367 P5, 367 P5, 367
or
P3 P5 P5
or
P3, A6, A7 P4 P5
etc...
Getting them splitted at the empty space character is done as follows
arr = VBA.Split(ActiveCell.Value, " ")
The desired result is as follows:
[P3, 367
P5, 367
P5, 367
]
or
[P3
P5
P5
]
or
[P3, A6, A7
P4
P5
] etc ...