开发者

Word VBA: Table caption

开发者 https://www.devze.com 2023-01-26 00:09 出处:网络
I\'m dealing with a little problem using VBA in MS Word2003: I have created a table and now I want to give it a caption, also with VBA...

I'm dealing with a little problem using VBA in MS Word2003:

I have created a table and now I want to give it a caption, also with VBA... Do you have any idea how to do开发者_StackOverflow社区 that?

Would be great if you could help me a little bit further! Greets, poeschlorn

@Edit: The word i was searching for was "caption" ;-)


The InsertCaption method should do what you want.

Example from the link above:

ActiveDocument.Tables(1).Range.InsertCaption _
Label:=wdCaptionTable, _
Position:=wdCaptionPositionBelow
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号