Signo.X
Well-known member
Hello all,
im using the follwoing to read data from a table in MS word using vb.net,
I only want to read the value at cell 2 of each row in the table.
Dim myTable As Table
Dim myRow As Row
Dim myCell As Cell
Dim cellText As String
For Each myRow In myTable.Rows
For Each myCell In myRow.Cells
cellText = myRow.Cells(2).Range.Text
cellText = Trim$(Left$(cellText, Len(cellText) - 2))
Console.WriteLine(cellText)
Next
Next
when i print the values , its printing the value of each cell twice ?@@!#
any idea why is it printing each value twice???
Thanks in advance
~ Signo.x
im using the follwoing to read data from a table in MS word using vb.net,
I only want to read the value at cell 2 of each row in the table.
Dim myTable As Table
Dim myRow As Row
Dim myCell As Cell
Dim cellText As String
For Each myRow In myTable.Rows
For Each myCell In myRow.Cells
cellText = myRow.Cells(2).Range.Text
cellText = Trim$(Left$(cellText, Len(cellText) - 2))
Console.WriteLine(cellText)
Next
Next
when i print the values , its printing the value of each cell twice ?@@!#
any idea why is it printing each value twice???
Thanks in advance
~ Signo.x