split string by tabstop in VBA for Word
-
hy everyone! I do want to do the following: I want to split strings using the tabstop as a seperator, so I do need something like this stringarray()=Split(mystring,tabstop) but I have no idea which ascii caracter I have to use to do so. Because Word or Windows uses the a special character to display non printable characters. Could anyone help me please? Because I do need this to get the chapterindizes out of an index. Thanks! Stephan.
-
hy everyone! I do want to do the following: I want to split strings using the tabstop as a seperator, so I do need something like this stringarray()=Split(mystring,tabstop) but I have no idea which ascii caracter I have to use to do so. Because Word or Windows uses the a special character to display non printable characters. Could anyone help me please? Because I do need this to get the chapterindizes out of an index. Thanks! Stephan.
Tab is ASCII character 9. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
hy everyone! I do want to do the following: I want to split strings using the tabstop as a seperator, so I do need something like this stringarray()=Split(mystring,tabstop) but I have no idea which ascii caracter I have to use to do so. Because Word or Windows uses the a special character to display non printable characters. Could anyone help me please? Because I do need this to get the chapterindizes out of an index. Thanks! Stephan.
-
there is also a vb constant for this:
vbtab
Also useful isvbcrlf
Also, the helpfiles has tables of the ASCII characters as reference for console applications. Look up theCHR()
orASC()
function in the index and there's a link to them.Whoops! I forgot about that! Hardly ever use
vbTab
... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome