Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2024, 03:49 PM
nonno nonno is offline Select everything that is bold and underlined and copy to new word doc Windows 11 Select everything that is bold and underlined and copy to new word doc Office 2021
Novice
Select everything that is bold and underlined and copy to new word doc
 
Join Date: Mar 2023
Posts: 13
nonno is on a distinguished road
Default Select everything that is bold and underlined and copy to new word doc

Hello,



As the subject says, how can I find everything in a word document that is bolded with underline and copy to a new word document?
Reply With Quote
  #2  
Old 08-18-2024, 07:00 AM
nonno nonno is offline Select everything that is bold and underlined and copy to new word doc Windows 11 Select everything that is bold and underlined and copy to new word doc Office 2021
Novice
Select everything that is bold and underlined and copy to new word doc
 
Join Date: Mar 2023
Posts: 13
nonno is on a distinguished road
Default

Any thoughts here on how to do this with VBA?
Reply With Quote
  #3  
Old 08-18-2024, 03:56 PM
macropod's Avatar
macropod macropod is offline Select everything that is bold and underlined and copy to new word doc Windows 10 Select everything that is bold and underlined and copy to new word doc Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,374
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You don't really need a macro for this. A simple Find/Replace can do it.
1. Specify the find font attributes as not bold, not underlined and the replacement string as ^p.
2. Next, specify the find font attributes as bold, not underlined and the replacement string as nothing.
3. Next, specify the find font attributes as not bold, underlined and the replacement string as nothing.
4. Finally, save as a new document.

If you really want a macro you could do all the above with the macro recorder running.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 08-18-2024, 05:17 PM
nonno nonno is offline Select everything that is bold and underlined and copy to new word doc Windows 11 Select everything that is bold and underlined and copy to new word doc Office 2021
Novice
Select everything that is bold and underlined and copy to new word doc
 
Join Date: Mar 2023
Posts: 13
nonno is on a distinguished road
Default

Thanks, works great.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Select and Copy from Word to Excel smbrush Word VBA 7 06-15-2018 08:43 AM
Select everything that is bold and underlined and copy to new word doc VBA Find&Replace all bold, itlaic, underlined and highlighted words/characters Kalü Word VBA 22 04-24-2018 05:35 AM
Word 2007-cannot select or copy image calvin-c Word 2 01-05-2017 02:26 PM
Select everything that is bold and underlined and copy to new word doc Select text to be underline and bold ksigcajun Word VBA 1 03-16-2015 07:51 PM
Select everything that is bold and underlined and copy to new word doc Create an underlined form field within an already underlined line? lwisniewski Word 1 01-21-2013 05:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:30 PM.


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