首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

WORD批量加入报表标题(转载)

2012-11-11 
WORD批量加入表格标题(转载)Sub macro1()If ActiveDocument.Tables.Count 1 ThenSet act_Doc Activ

WORD批量加入表格标题(转载)
Sub macro1()
'
'
If ActiveDocument.Tables.Count >= 1 Then
   Set act_Doc = ActiveDocument
       For Each otable In act_Doc.Tables
            CaptionLabels.Add Name:="表格"
       With otable.Range.InsertCaption(Label:="表格", Position:=wdCaptionPositionAbove)
           'Position:=wdCaptionPositionBelow
       End With
    Next
End If

End Sub

热点排行