ActiveDocument.Tables(1).Range.InsertCaption _ Label:=wdCaptionTable, _ Position:=wdCaptionPositionBelow 另請參閱 Range 物件 支援和意見反應 有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱Office VBA 支援與意見反應。
Position可选Variant指定在范围的上方还是下方插入题注。 可以是WdCaptionPosition常量之一。 ExcludeLabel可选Variant真没有文本标签,在标签参数中定义。错误包含指定的标签。 示例 以下示例在活动文档的第一个表格下方插入一个题注。 VB复制 ActiveDocument.Tables(1).Range.InsertCaption _ Label:=wdCaptionTable, _ ...
紧接在指定区域或所选内容之前或之后插入题注。 expression.InsertCaption(Label, Title, TitleAutoText, Position) expression 必需。该表达式返回一…
同感,我也是试了,能插入题注,但是不能设置插入在上面还是下面。这个insertcaption方法的用法和在word...
Position選用Variant會指定上方或下方選取項目是否會插入標號。 可以是WdCaptionPosition常數之一。 ExcludeLabel選用VariantTrue 是表示不包含文字標籤、 Label 參數中所定義。False會包含指定的標籤。 範例 這個範例會在插入點插入 Figure 標號。 VB Selection.Collapse Direction:=wdCollapseStart Selection.InsertCaption Labe...
ClickReferences>Insert Caption. To use the default label (Figure), type your caption in theCaptionbox. Tip:You can also create your own default caption label by clickingNew Label, and then adding your caption in theLabelbox. Word automatically numbers the new labels for you. ...
WithKutools for Word'sReference, you can quickly insert cross reference to caption in Word by a click. Kutools for Wordis the ultimate Word add-in that streamlines your work and boosts your document processing skills.Get It Now! Step 1. Put the cursor on the place where you want to inse...
You can insert a right-aligned caption for an equation using a table in Word. Follow these steps: ClickInsert>Table, and select a 3x1 table to insert. Enter your equation in the second cell of the table. Tip:You can adjust the table width by dragging the borders or changing the size ...
Microsoft.Office.Interop.Word.dll Inserts a caption immediately preceding or following the specified range. C# publicvoidInsertCaption(refobjectLabel,refobjectTitle,refobjectTitleAutoText,refobjectPosition,refobjectExcludeLabel); Parameters Label Object ...
Thankfully, Microsoft Word makes this process very easy and straightforward. Here’s how to get it done in some easy steps. How to Insert a List of Tables and Figures in Microsoft Word Before adding a list of tables and figures, you have toadd a caption to each figure and tablein your...