V
Vaibhav
Hi
I am trying to change the orientation of text displayed in a cell, but am
unable to do so. Can someone please adivse on the correct of setting cell
text orientation using OWC.
I know that there is a 'Orientation' property and have tried setting it
using the following method, but it does'nt work.
Dim xLO As OWC.XlOrientation
(''I have tried all the options mentioned below")
With xlSheet.ActiveSheet
Cells(2, 5).Value2.Orientation = -90
Cells(2, 5).Style = xLO.xlVertical
.Cells(2, 5).Value2.Orientation = xLO.xlVertical
.Range("E5").Orientation = OWC.XlOrientation.xlVertical
.Cells(2, 5).VerticalAlignment = OWC.XlOrientation.xlVertical
.Cells(2, 5).value2.Orientation = OWC.XlOrientation.xlVertical
Range("E5", "E5").Orientation = xLO.xlVertical
End With
Any help would be highly appreciated.
TIA
I am trying to change the orientation of text displayed in a cell, but am
unable to do so. Can someone please adivse on the correct of setting cell
text orientation using OWC.
I know that there is a 'Orientation' property and have tried setting it
using the following method, but it does'nt work.
Dim xLO As OWC.XlOrientation
(''I have tried all the options mentioned below")
With xlSheet.ActiveSheet
Cells(2, 5).Value2.Orientation = -90
Cells(2, 5).Style = xLO.xlVertical
.Cells(2, 5).Value2.Orientation = xLO.xlVertical
.Range("E5").Orientation = OWC.XlOrientation.xlVertical
.Cells(2, 5).VerticalAlignment = OWC.XlOrientation.xlVertical
.Cells(2, 5).value2.Orientation = OWC.XlOrientation.xlVertical
Range("E5", "E5").Orientation = xLO.xlVertical
End With
Any help would be highly appreciated.
TIA