Application.AutoCaptions Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns an AutoCaptions collection that represents the captions that are automatically added when items such as tables and pictures are inserted into a document. Read-only.

expression .AutoCaptions

expression A variable that represents an Application object.

For information about returning a single member of a collection, see Returning an Object from a Collection.

This example displays the name of each item that automatically gets a caption when inserted into the document.

Dim captionLoop as AutoCaption 
 
For Each captionLoop In AutoCaptions 
 If captionLoop.AutoInsert Then MsgBox captionLoop.Name 
Next captionLoop
Show: