0
我想找到一些text
如果這段文字是表,則表格轉換成文本別的什麼也不做如果沒有表,然後做別的
但如果沒有Table
它提供了一個Error
Selection.Find.ClearFormatting
With Selection.Find
.Text = " - ^$^$^$^$ ^$ - ^$^$^$^$^$^$"
.Forward = True
.Wrap = wdFindStop
.Format = True
End With
Selection.Find.Execute
If Selection.Find.Found = True Then
Selection.Tables(1).Select ' This is Error position
Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:= _
True
Else
End If
,我希望它do
它loop
如果selection.tables.count> -0然後.....對於I = 1到selection.tables.count .. ..... –