VB怎么获得Word中表格总数

word

1个回答

写回答

tommaimai88

2026-02-13 21:39

+ 关注

word
word

activedocument.tables.count 这句代码就能实现功能 下面是我测试时用的完整代码,仅供参考: Private Sub Command1_Click() Dim woapp As word.Application Set woapp = CreateObject(word.application) woapp.*.Open (c:2.docx) MsgBox ActiveDocument.Tables.Count End Sub

举报有用(6分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号