TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Indeed we were just discussing that the other day onlist
I used these two macros to generate my output to the list. Do this for each
set of styles and then use Compare Documents to generate the list of
diffs...
Of course you will have to edit the content of GimmeStyleNames but that
should be a doddle
Sub StyleLister()
Dim StyleCounter As Integer, k As Integer
Dim InDoc As Word.Document, OutDoc As Word.Document
Dim s As Word.Style
Dim myStyles() As String
Dim Flag As Boolean
GimmeStyleNames myStyles()
Set InDoc = ActiveDocument
Set OutDoc = Documents.Add
InDoc.Select
With OutDoc.Range
'changing stylesets (internal) clipped
For StyleCounter = 1 To InDoc.Styles.Count
Set s = InDoc.Styles(StyleCounter)
Flag = False
For k = 1 To UBound(myStyles) 'my style or built-in?
If s.NameLocal = myStyles(k) Then
Flag = True
Exit For
End If
Next
If Flag Then
.InsertAfter s.NameLocal & vbTab & s.Description
.InsertParagraphAfter
End If
Next
End With
End Sub
Sub GimmeStyleNames(AnArray() As String)
ReDim AnArray(46) As String
Steve Hudson
Principal Technical Writer
Wright Technologies (Aus)
steve -at- wright -dot- com -dot- au
(612) 9518-1822
The best way to predict the future... is to create it!
-----Original Message-----
From: Patti Arteaga
I've seen a couple of notes going back and forth regarding comparing styles.
We've just instituted a new style for all of our documents and I was in the
process of changing them over. Our Director of Engineering decided to
modify our new styles and now I need to compare the styles. Is there a
simple way (I've never used VBA) to print out and compare each style in two
different documents?
Planning to attend IPCC 01, October 24-27 in Santa Fe? Sign up by
October 3 and get a substantial discount! Program information,
online registration, and more on http://ieeepcs.org/2001/
Your monthly sponsorship message here reaches more than
5000 technical writers, providing 2,500,000+ monthly impressions.
Contact Eric (ejray -at- raycomm -dot- com) for details and availability.
---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.