Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 12-16-2013, 04:21 PM
macropod's Avatar
macropod macropod is offline showing text formatting overrides Windows 7 32bit showing text formatting overrides Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
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

As I posted in nooru's other thread (https://www.msofficeforums.com/word/...-template.html), this is difficult to do. There a many attributes for every paragraph Style that would have to be checked. Suppose, for example, a paragraph Style specifies a 1/2in indent but someone using a metric setup used 1.25cm indents, a difference of 0.2cm. Does that count as direct formatting? How about if they added a tab-stop, then didn't use it? Or how about if the Style calls for single line spacing but a user chose an 'exact' spacing that just happens to be the same?

To get an idea of how many Styles & attributes might need checking, try running the following macro in a empty document:
Code:
Sub GetStyleAttribs()
Dim Stl As Style, StrList As String, i As Long
With ActiveDocument
  For Each Stl In .Styles
    With Stl
      StrList = StrList & vbCr & .NameLocal & vbTab & .Description & vbCr
      i = i + 1
    End With
  Next
  .Range.InsertAfter i & " Styles found:" & StrList
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
styles ‒ clearing local overrides eNGiNe Word 1 03-01-2012 08:15 AM
not showing colored text from external emails MasterGator Outlook 0 01-31-2012 02:20 PM
showing text formatting overrides Showing Text fields on GANTT and Resource NeoFax Project 4 06-07-2011 08:32 AM
Index words in the text showing code alpruett Word 0 06-29-2010 09:51 AM
Cells with wrap text not showing text lazylew Excel 1 08-31-2008 06:58 AM

Other Forums: Access Forums

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