![]() |
#2
|
|||
|
|||
![]()
What kind of style? Here is one way to list all text with the "Strong" character style applied:
Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Dim oRng As Word.Range Set oRng = ActiveDocument.Range With oRng.Find .Style = "Strong" While .Execute ActiveDocument.Range.InsertAfter vbCr & oRng ActiveDocument.Paragraphs.Last.Range.Style = "Normal" oRng.Collapse wdCollapseEnd Wend End With End Sub |
Tags |
macro, styles |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
OfficeBoy95 | Word | 2 | 05-12-2014 06:31 PM |
![]() |
spthomas | Word | 12 | 12-16-2013 05:23 PM |
How to set style automatically for specific texts | ragesz | Word | 2 | 07-25-2013 07:08 AM |
![]() |
veronius | Word | 6 | 06-18-2013 06:29 PM |
Get list of text of a style | mavera2 | Word | 0 | 03-19-2010 01:59 AM |