Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 03-17-2013, 07:08 PM
macropod's Avatar
macropod macropod is offline Finding and replacing fonts and styles Windows 7 64bit Finding and replacing fonts and styles Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Quote:
but it takes too much time just to work with one single file
About the only thing that can be done to make the macro run faster is to turn of screen updating while it runs:
Code:
Sub RevisionColorize()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument
  .TrackRevisions = False
  For i = .Revisions.Count To 1 Step -1
    With .Revisions(i)
    If .Type = wdRevisionDelete Then
      .Range.Style = "Red"
    End If
    If .Type = wdRevisionInsert Then
      .Range.Style = "Blue"
      .Accept
    End If
    End With
  Next
  .Revisions.RejectAll
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
find & replace, font colours styles, merge, style



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing texts aslamyahya Excel Programming 1 02-27-2013 10:38 PM
Finding and replacing fonts and styles Fonts error when I used 2 types of fonts in 1 file cmengenie Word 3 03-18-2012 02:49 PM
Finding and replacing fonts and styles Quick Styles Set saved but it doesnt appear at the styles list! Pedro77 Word 3 10-15-2011 05:17 AM
Finding and replacing fonts and styles Word replacing problem!!!! Jamal NUMAN Word 2 07-08-2011 03:56 AM
Finding and replacing fonts and styles Replacing default fonts mark98101 Word 1 01-31-2011 02:31 PM

Other Forums: Access Forums

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