Controlling text direction in VB

D

David Cleave

Hi all

How do I set the text direction property, found under the Format menu, using
Visual Basic? I can’t find it anywhere in the object library.

Many thanks

David
 
P

Perry

In Word you wud go
Selection.FormattedText.HorizontalInVertical =
wdHorizontalInVerticalResizeLine
Selection.FormattedText.HorizontalInVertical = wdHorizontalInVerticalNone
or
ActiveDocument.Content.HorizontalInVertical =
wdHorizontalInVerticalResizeLine

The equivalent in VB
wd.Selection.FormattedText.HorizontalInVertical = 2
wd.Selection.FormattedText.HorizontalInVertical = 0
or
wd.ActiveDocument.Content.HorizontalInVertical = 1
(wd is an object variable pointing to an instantiantiated and applicable
Word instance)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top