Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2025, 05:15 PM
rok123 rok123 is offline Inserting new text based on format of existing text Windows 7 64bit Inserting new text based on format of existing text Office 2013
Novice
Inserting new text based on format of existing text
 
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
  #2  
Old 11-04-2025, 09:21 PM
Guessed's Avatar
Guessed Guessed is offline Inserting new text based on format of existing text Windows 10 Inserting new text based on format of existing text Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,184
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Yeah, nah!

You will need to explain what you want a whole lot better than that. It is really not clear what you want.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting new text based on format of existing text Inserting and rearranging text by inspecting existing text rok123 Word VBA 9 02-05-2016 07:31 PM
Inserting new text based on format of existing text Format Text based on use elsewhere Rtowey Excel 1 07-21-2015 06:05 AM
Inserting new text based on format of existing text Inserting text from one word file into another based on an excel input jmaxcy Excel 14 11-01-2013 04:07 PM
Inserting text from one word file into another based on an excel input jmaxcy Word 3 11-01-2013 01:26 AM
Inserting new text based on format of existing text Text format different than existing one Manrak Word 1 08-11-2013 04:51 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft