SOLVED: search for string, wherever found, at end of line, insert 8 <cr>s
we do a single drag/copy/paste text from a proprietary app's text window and paste into a blank word page. it can be from a dozen lines to a few hundred lines. when in Word, we see each line has a paragraph mark.
we need to search the whole block and whenever we see a set text sting (thankfully unique i.e "KKJJ ABC") we need to go to the end of that line and insert 8 carriage returns. do until end. end product is 8 blank lines after each incidence of the string.
i have put in buckets of BS&T manipulating Excel code, but those few different concepts of Word VBA still escape me at the moment. we needed this yesterday, and i just can't get the search,move,do, repeat individual parts to work together.
Any help, extremely thankful.. -- Scott
Last edited by sbktex; 09-18-2014 at 10:57 AM.
Reason: SOLVED
|