LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Word Table Borders and Shading

Hi There,

 

Attached is a snipet of code that I use to programmatically shade selected cells of a large table in Word.

 

This code seems to sporadically shade the wrong cells. 

 

- Sometimes it is as though it switches to indexing from 1 rather than 0.

- Sometimes LV shades whole regions of the table when only a single cell / column / row is specified.

- Sometimes it is not possible to replicate an error when stepping through the code.

- Sometimes increasing the delay within the FOR loop fixes it, sometimes it doesn't.

- Sometimes altering the parts of the document before or after the table has an effect on whether it works or not.

 

Has anyone had any experience of this, and can shed some light on it?

 

Many Thanks,

Dan

Dan
CLD
0 Kudos
Message 1 of 2
(1,951 Views)

Hi Dan, what version of Microsoft Office are you using?

Also, could you please give instruction on how to run the VI and reproduce the problem?

0 Kudos
Message 2 of 2
(1,932 Views)