Parsing text with tags in Excel using VBA

Hello,

I need to parse a text containing tags.

The problem is that all of the VBA parsing functions I found divide the text using one char delimiters.

Any ideas

Thanks,

Raphael Cohen

Bioinformatics Support Unit

Ben-Gurion University



Answer this question

Parsing text with tags in Excel using VBA

  • Mike Reese

    Have you tried the VBA Split function It came in with Excel 2000 but can be simulated in earlier versions.

    a$="h<t>a<t>p<t>p<t>y"
    b=Split(a$,"<t>")

    produces:
    b(0) = "h"
    b(1) = "a"
    b(2) = "p"
    b(3) = "p"
    b(4) = "y"

    Any good


  • Devi

    I think thats what I was looking for.

    Thanks.

    Raphael.


  • Parsing text with tags in Excel using VBA