Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 12-06-2011, 07:54 PM
macropod's Avatar
macropod macropod is online now Putting italics back into a document Windows 7 64bit Putting italics back into a document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
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

It'd be far easier if you simply copied the formatted source document to a new file, then used Format|Font|Regular on the whole of the target document before running the macro. If you need to clean up paragraph breaks in the target document, that's easily done too - by the addition of some code after the 'Loop' statement:
Code:
With Doc.Range
  With .Find
    .ClearFormatting
    .Text = "[^13]{2,}"
    .Replacement.Text = "^p"
    .MatchWildcards = True
    .Execute wdReplaceAll
  End With
End With
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting italics back into a document Italics and Fonts Mysteriously Vanish When a Word 2003 Document is Saved saclarkdoc Word 1 10-28-2011 03:56 PM
Putting italics back into a document Putting a bookmark on a REF field in the selection b0x4it Word VBA 4 05-26-2011 01:14 AM
How to retain italics when pasting from PDF? WaltR Word 0 03-01-2011 04:01 PM
Spellcheking, grammar and italics Rosseiro Word 0 08-20-2010 10:07 PM
Putting italics back into a document Putting a horizontal line in a Word Document -- should be simple, right? biotechguy Word 4 05-10-2010 11:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:25 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