LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing individual rows in word table with merged cells

Hi people
 
I'm at the moment doing a lot of rewriting testsequences for TestStand at my work.
To each testsequence belongs a word document describing the nature of each step in a table row (limits, steptype, name, description, comment and so forth).
Since it's a somewhat tedious job going through all those sequence steps looking for differences comparing it to the documentation,
i came up with a 'smart' solution:
 
I intended to read the documentation tables from the word document and then programmatically compare each step in the sequence
to each row in the specification allowing the user to see exactly whats been changed, if anything.
 
I just finished the code yesterday and everything seemed to be working just fine...and then it popped up an error!
 
It seems that in some of the documents the tables i'm supposed to read have cells merged horizontally in the 'header' row preventing me
from accessing them by row and/or at cell level. I'm using ActiveX/refnum properties and methods to access the tables.
 
My current VI is build so that for each table that exist in the document, i count it's rows, access each row in turn and select each cell
in that row as a range...then i extract the content of each range using the range.text property.
 
Does anyone know of a way to access data in word tables that have merged cells in them, or am i doing this the wrong way?!?
 
I'm using LV7.1-8.20 and teststand 3.1-3.5 and MS Word 2000
 
Any suggestions are most welcome..

Message Edited by Soulstorm on 03-22-2007 06:08 AM

0 Kudos
Message 1 of 2
(2,848 Views)
Hi Soulstorm,
 
Could you post a screenshot of the error you are getting?
 
Also, if you could post the relevant part of your VI and an example of the word document that will produce the error, I can try reproducing it here.
 
Best regards,
Peter Porsman | Applications Engineer | National Instruments
0 Kudos
Message 2 of 2
(2,824 Views)