As I think now you can to change it like this: #include <IE.au3> Local $oIE = _IE_Example("table") Local $oTable = _IETableGetCollection($oIE, 1) _IETableCleanUp($oTable) Func _IETableCleanUp(ByRef $oObject) Local $oTrs = $oObject.rows For $oTr In $oTrs $oTds = $oTr.cells $iCol = 0 For $oTd In $oTds $oTd.innerhtml ='' If @error Then ; Trap COM error, report and return Return SetError($_IESTATUS_