Forum Discussion
SamuraiJack
16 years agoContributor
Script seems to be working until I get to Set Cell = Tbl2.Cell(i,j) then it can't find those objects (which are not name mapped). Because the number of those objects is fluid, do I need to use GetChild or something similar to identify them before trying to set a value to them?
For i = 0 To Tbl.rowcount - 1
Log.AppendFolder("Policy " & i)
'find Second table
Set Tbl2 = Tbl.Cell(i,0).Panel(0).Table(0)
' Goes through cells
For j = 0 To Tbl2.ChildCount-1
' Obtains the cell
Set Cell = Tbl2.Cell(i, j)
' Posts the cell's text to the log
Log.Message ("Cell " & i & "," &j & ": " & Cell.innerText)
Next
Next