i have a string that looks like this
“Patient Name, Doc Name, Patient ID, something else”
i want to extract each one of these and put it in a variable. such that var1 will equal “Patient Name” var2 will equal “Doc name” etc.. using instr and mid. what is the best way to do it?
The best way to do it is using the Split function – here’s some vba code to do it:
And in VB.Net: