Thread: [Solved] Find captions on Word
View Single Post
 
Old 12-14-2016, 09:49 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Do you mean like
Code:
Dim orng As Range
    Set orng = ActiveDocument.Range
    With orng.Find
        .Style = "Caption"
        Do While .Execute
            orng.Select
            MsgBox orng.Text
            orng.Collapse 0
        Loop
    End With
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote