So I have data in format :
data1|data2|data3|data4|data5|data6|... etc.
I want Word to put enter (break line) after every 5th occurence of | in order to structure and separate data.
I cant find a simple and quick way to doing that. Any ideas?
So I have data in format :
data1|data2|data3|data4|data5|data6|... etc.
I want Word to put enter (break line) after every 5th occurence of | in order to structure and separate data.
I cant find a simple and quick way to doing that. Any ideas?
Copyright © 2021 Jogjafile Inc.
Use the built-in
Splitfunction and rebuild the data string using thevbCrLfconstant to add the line-feed.Note that the
Splitfunction removes the delimiter, so if you need it in the output, you have to add it back when you add the strings in theForloop.Something like the following could work: