Centering text in VBA code?

M

MxPxRobbie

Good morning folks, I have a quick question:

I'm creating a form where the individual headings on the document will
change depending on the selections made in the form. I would like to
center these headings, to make them stand off from the text below
them. Is there a way to do this without centering the bookmark?

Thanks in advance,
Robbie
 
J

Jonathan West

Good morning folks, I have a quick question:

I'm creating a form where the individual headings on the document will
change depending on the selections made in the form. I would like to
center these headings, to make them stand off from the text below
them. Is there a way to do this without centering the bookmark?

Thanks in advance,
Robbie

Set the Alignment property of the ParagraphFormat object of the relevant
range to wdAlignParagraphCenter
 
Top