I use Excel VBA to output a report as winword format, how can I put the font at table cells alignment in centre by Excel VBA code ?
I use Excel VBA to output a report as winword format, how can I put the font at table cells alignment in centre by Excel VBA code ?
Paragraph alignments in Word are managed via the .ParagraphFormat.Alignment property. For example:
or, for late binding:wdDoc.Tables(1).Range.ParagraphFormat.Alignment = wdAlignParagraphCenter
wdDoc.Tables(1).Range.ParagraphFormat.Alignment = 1
Cheers
Paul Edstein
[Fmr MS MVP - Word]
It seems you've asked about this sort of thing before: http://www.vbaexpress.com/forum/show...-at-word-table
Cheers
Paul Edstein
[Fmr MS MVP - Word]