请问vb操作word问题
现word里有个表格,因表格不规则,所以在读取单元格时可能这个单元格不存在,请问vb如何判断word里某个单元格是否存在? --------------------编程问答-------------------- Sub Macro1()Dim ncol, nrow, i, j As Long
On Error Resume Next
With ActiveDocument.Tables(2)
ncol = .Columns.Count
nrow = .Rows.Count
For i = 1 To nrow
For j = 1 To ncol
Debug.Print ( "第 " & i & "行第 " & j & "列有效,值为: " & .Cell(i, j).Range)
Next
Next
End With
End Sub
--------------------编程问答-------------------- on error 屏蔽
补充:VB , 控件