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
Split
function and rebuild the data string using thevbCrLf
constant to add the line-feed.Note that the
Split
function removes the delimiter, so if you need it in the output, you have to add it back when you add the strings in theFor
loop.Something like the following could work: