Choose a picture or image, the one that requires a caption or description. Access theReferencestab and selectInsert Captionin theCaptionssection. As soon as the Caption dialogue box appears, selectNew Labeland then type the suitable caption or description in theNew Labelpop up box. SelectOKwhen...
Word.Selection.InsertCaption('图',PicN,'',0,false); %插入题注 Selection.Paragraphs.Alignment =...
Sub 宏1() CaptionLabels.Add Name:="Photo" For Each ils In ActiveDocument.InlineShapes ils.Select Selection.InsertCaption Label:="Photo", TitleAutoText:="InsertCaption1", _ Title:="", Position:=wdCaptionPositionAbove, ExcludeLabel:=0 Next ilsEnd Sub这个只能对“嵌...
expression。 InsertCaption( _Label_ , _Title_ , _TitleAutoText_ , _Position_ , _ExcludeLabel_ )需要expression。 代表 Range 物件的變數。參數展開資料表 名稱必要/選用資料類型描述 Label 必要 Variant 要插入標號標籤。 可以是 字串 或WdCaptionLabelID 常數之一。 如果尚未定義標籤,會發生錯誤。 若要...
选中图片,右击,从弹出菜单选“插入题注”,题注窗口,选项 标签的下拉列表中选择需要的标签类(记住名称)及其它选项。在需要的引用的地方,在功能区中选择:引用,题注,交叉引用,从引用类型下拉列表 选相应的类型,从下方列表中选择要插入的题注,插入即可。在功能区中选择:插入,链接,交叉引用...
expression。 InsertCaption( _Label_ , _Title_ , _TitleAutoText_ , _Position_ , _ExcludeLabel_ )expression 是必需的。 一个代表 Range 对象的变量。参数展开表 名称必需/可选数据类型说明 Label 必需 Variant 要插入的题注标签。 可以是一个 字符串 或WdCaptionLabelID 常量之一。 如果未定义标签,则...
You can add a caption to any picture, table, or equation in your document. You can also have Word automatically insert captions for some items. In addition, you can change the numbering format or change the label title. Tip:If you're using Word for Mac 2011 these steps work best if yo...
设置题注的方法InsertCaption()封装在Range和Selection中,在此使用Range进行演示。 """沿用上一步的代码"""pic1.Range.InsertCaption(Label=-1,# 当前操作的对象为图片Title='撸猫延年益寿',# 题注中的标题TitleAutoText='',# 暂未清楚Position=1,# 在图片的下方插入题注,0为上方) ...
Position選用Variant會指定上方或下方選取項目是否會插入標號。 可以是WdCaptionPosition常數之一。 ExcludeLabel選用VariantTrue 是表示不包含文字標籤、 Label 參數中所定義。False會包含指定的標籤。 範例 這個範例會在插入點插入 Figure 標號。 VB Selection.Collapse Direction:=wdCollapseStart Selection.InsertCaption Labe...
"Caption" | "FootnoteReference" | "EndnoteReference" | "EndnoteText" | "Title" | "Subtitle" | "Hyperlink" | "Strong" | "Emphasis" | "NoSpacing" | "ListParagraph" | "Quote" | "IntenseQuote" | "SubtleEmphasis" | "IntenseEmphasis" | "SubtleReference" | "IntenseReference" | "Book...