편집

다음을 통해 공유


Application.AutoCaptions property (Word)

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.

Syntax

expression. AutoCaptions

expression A variable that represents an Application object.

Remarks

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

Example

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

See also

Application Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.