CodePudding user response:
If ActiveDocument. Tables. Count> 0 Then
The Set tRange=ActiveDocument. Range (_
Start:=ActiveDocument. Tables (1). The Range. The Start, _
End:=ActiveDocument. Tables (ActiveDocument. Tables. Count). Range. End)
TRange. Next
'... .
EndIf
?
CodePudding user response:
https://docs.microsoft.com/zh-cn/office/vba/api/word.tables