LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parsing a ms word table with differnt numbers of columns for each row

Solved!
Go to solution

I am trying to read in an MS Word table that contains 20 rows, each with a differnt number of columns.  I iterate on each row then I iterate on each column in the row and read its text.  I do not know a way of knowing how to stop iterating on the columns.  Is ther a property or a method that tells you the number of columns in a specific row for an MS Word table?

0 Kudos
Message 1 of 3
(3,377 Views)
Solution
Accepted by id

@id wrote:

I am trying to read in an MS Word table that contains 20 rows, each with a differnt number of columns.  I iterate on each row then I iterate on each column in the row and read its text.  I do not know a way of knowing how to stop iterating on the columns.  Is ther a property or a method that tells you the number of columns in a specific row for an MS Word table?


For each row use the cells count property. Since it's a row object count correspond to the number of columns.

 

Ben64

0 Kudos
Message 2 of 3
(3,354 Views)

Thanks

0 Kudos
Message 3 of 3
(3,325 Views)