答案1
看起来问题是由于它试图将 Word.Table 存储到 Outlook.Table 中。
之前(不工作):
Dim aTbl As Table
Dim i As Integer
For i = 1 To objSel.Tables.Count()
Debug.Print (TypeName(objSel.Tables.Item(i)))
Set aTbl = objSel.Tables.Item(i)
Debug.Print (TypeName(aTbl))
Next
之后(工作):
Dim aTbl As Word.Table
Dim i As Integer
For i = 1 To objSel.Tables.Count()
Debug.Print (TypeName(objSel.Tables.Item(i)))
Set aTbl = objSel.Tables.Item(i)
Debug.Print (TypeName(aTbl))
Next