MS Word で 3 X 3 (たとえば tableA) のテーブルがあります。(2,2) 番目のセルは分割セル (2X2 テーブルに分割) です。tableA のすべてのセルを循環するにはどうすればよいですか。
Dim strCellText As String
Dim uResp As String
Dim Row As Integer
Dim Col As Integer
Dim itable As Table
For Each itable In ThisDocument.Tables
uResp = ""
For Row = 1 To itable.Rows.Count
For Col = 1 To itable.Columns.Count
strCellText = itable.Cell(Row, Col).Range.Text
uResp = uResp & Trim(strCellText)
Next
Next
MsgBox uResp
Next
このプログラムでは、コンパイル エラーが発生します。
Run time error 5914
The requested member of the collection does not exist
セルが分割されているテーブルのセルを反復するにはどうすればよいですか。