尝试这种拆分表:
Sub Spliter()
If ActiveDocument.Tables.count <> 0 Then
For j = ActiveDocument.Tables.count To 1 Step -1
Set oTbl = ActiveDocument.Tables(j)
oTbl.Select
'MsgBox Prompt:=Selection.Information(wdMaximumNumberOfRows), Buttons:=vbOKOnly + vbInformation
If Selection.Information(wdMaximumNumberOfRows) > 30 Then
'MsgBox Prompt:="if", Buttons:=vbOKOnly + vbInformation
g = 1
Do While (g <= Selection.Information(wdMaximumNumberOfRows))
'MsgBox Prompt:=g, Buttons:=vbOKOnly + vbInformation
If Selection.Information(wdMaximumNumberOfRows) < 30 Then Exit Do
Selection.Rows(g).Select
Selection.MoveDown Unit:=wdParagraph, count:=30, Extend:=wdExtend
Selection.Cut
Selection.Rows(1).Select
Selection.HomeKey Unit:=wdLine
Selection.MoveUp Unit:=wdLine, count:=1
Selection.EndKey Unit:=wdLine
Selection.TypeParagraph
Selection.PasteSpecial Link:=False, DataType:=wdPasteEnhancedMetafile, _
Placement:=xlMoveAndSize, DisplayAsIcon:=False
oTbl.Select
'MsgBox Prompt:=Selection.Information(wdMaximumNumberOfRows), Buttons:=vbOKOnly + vbInformation
Loop
If Selection.Information(wdMaximumNumberOfRows) < 30 Then
Selection.Cut
Selection.PasteSpecial Link:=False, DataType:=wdPasteEnhancedMetafile, _
Placement:=xlMoveAndSize, DisplayAsIcon:=False
End If
Else
Selection.Cut
Selection.PasteSpecial Link:=False, DataType:=wdPasteEnhancedMetafile, _
Placement:=xlMoveAndSize, DisplayAsIcon:=False
End If
Next j
' Call Log("#ActiveDocument.Tables>Image = True ", False)
End If
End Sub