Re: Controlling text direction in VB by Perry
Perry
Wed Dec 14 16:46:50 CST 2005
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)
-------------------------------------
Krgrds,
Perry
"David Cleave" <DavidCleave@discussions.microsoft.com> wrote in message
news:0DE4343A-A57A-486F-94A4-7AE3F4E3B82E@microsoft.com...
> 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