View Single Post
 
Old 10-31-2025, 05:15 PM
rok123 rok123 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jan 2016
Posts: 9
rok123 is on a distinguished road
Default Inserting new text based on format of existing text

I would like the macro to convert the following given text
Given text Part1 PartA Part2 PartB PartE**/
Convert the above text into these
Mytext1 Part1 + “and” + Part2
Mytext2 PartA + “and” + PartB
Mytext3 PartA + “and” + PartB
Mytext4 PartE
Where the start of the given text is cursor position and end of Given text is market **/
Part1, Part2 are non-underlined text that can be multiple paragraphs, or fraction of line. i.e they can have any format except underlined
PartA, PartB etc. are single underlined text
PartE is end text between ** **
Reply With Quote