SRowe
Thu Jun 23 06:01:03 CDT 2005
Woot! Thx! That is what I was looking for.
Scott
"Jay Freedman" wrote:
> On Wed, 22 Jun 2005 19:47:02 -0700, "SRowe"
> <SRowe@discussions.microsoft.com> wrote:
>
> >I am writing a VBScript to report on some AD stuff. I got the code working
> >great but I am unable to center the text. Here is what I pulled from a macro:
> >
> >Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
> >
> >It does not work. I'm guessing because VBScript does not have a value for
> >wdAlignParagraphCenter. Anyone know where I can find the correct value or
> >pull them from Word?
> >
> >Scott
>
>
> Hi Scott,
>
> The value of wdAlignParagraphCenter is 1.
>
> In general, open the VBA editor in Word and press F2 to display the
> Object Browser. Type in the name of a constant and press Enter. The
> value will be displayed at the bottom of the window.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ:
http://word.mvps.org
>