I got the answers on my question by the way, atleast it will contribute to others who doesn't know yet
For Each table In HTMLDoc.getElementsByTagName("TABLE")
If table.getAttribute("id") = "mytable" Then
tablestr = table.outerHTML
End If
Next
Hope it helps.. :)