LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set the text orientation in a Microsoft Word table cell from LabVIEW?

In a table in Word (Office 2010) it's possible to change the text orientation in a cell (if you right click on a cell, it's the 'Text Direction...' option). 

 

Has anyone figured out how to do this from LabVIEW?  I took a quick look at doing it via ActiveX, but haven't find the correct property/method.  Next step is to try .net.

0 Kudos
Message 1 of 3
(2,999 Views)

I think you can do it using the ActiveCell Orientation property. Possible values are xlHorizontal,  xlVertical, xlUpward, xlDownward, 45, -45 (found by googling).

 

Ben64

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

Previous post shows the constant values for Excel (my mistake). The following code will change the text orientation for a whole table in Word.

 

Ben64

 

Word Set Table Text Orientation.png

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