Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 10-08-2014, 05:20 PM
gmaxey gmaxey is offline Creating a list of all text in a specific style Windows 7 32bit Creating a list of all text in a specific style Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,635
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Ok, I see it now still runs without error. Change to this and it runs and adds your Words to the end:

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Word.Range
Set oRng = ActiveDocument.Range
  With oRng.Find
    .Style = "Glossary Pop-up Char"
    While .Execute
      ActiveDocument.Range.InsertAfter vbCr & oRng
      ActiveDocument.Paragraphs.Last.Range.Style = "Normal"
      oRng.Collapse wdCollapseEnd
    Wend
  End With
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Tags
macro, styles



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a list of all text in a specific style How to set the left indent in a specific style. OfficeBoy95 Word 2 05-12-2014 06:31 PM
Creating a list of all text in a specific style List Style Numbering picks up out of order number from LATER list 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
Creating a list of all text in a specific style I create a new style but it fails to appear in Quick Style list 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

Other Forums: Access Forums

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