J
Jens 'Kluesi' Kluesener
Hi
I want to create some code in VBA. I fill out an Excel Table an after that
I start my code. I create (from Excel) a Word Document an filled it out
with some of the the content out of the Excel Table. This works fine. But
now I want to format some paragraphs in another Fontsize or align a
paragraph on the right side. But how can I do that?
I tried this...
Example:
appWord.Application.ActiveDocument.Content.InsertAfter text:="Size 10" &
Chr$(13)
appWord.Application.ActiveDokument. *???* .Font.Size = 8
appWord.Application.ActiveDocument.Content.InsertAfter text:="Size 8" &
Chr$(13)
That's one part and the other is...
appWord.Application.ActiveDocument.Content.InsertAfter text:="left" &
Chr$(13)
appWord.Application.ActiveDokument. *???* .Alignment =
wdAlignParagraphRight
appWord.Application.ActiveDocument.Content.InsertAfter text:="right" &
Chr$(13)
Many Thanks
Jens
I want to create some code in VBA. I fill out an Excel Table an after that
I start my code. I create (from Excel) a Word Document an filled it out
with some of the the content out of the Excel Table. This works fine. But
now I want to format some paragraphs in another Fontsize or align a
paragraph on the right side. But how can I do that?
I tried this...
Example:
appWord.Application.ActiveDocument.Content.InsertAfter text:="Size 10" &
Chr$(13)
appWord.Application.ActiveDokument. *???* .Font.Size = 8
appWord.Application.ActiveDocument.Content.InsertAfter text:="Size 8" &
Chr$(13)
That's one part and the other is...
appWord.Application.ActiveDocument.Content.InsertAfter text:="left" &
Chr$(13)
appWord.Application.ActiveDokument. *???* .Alignment =
wdAlignParagraphRight
appWord.Application.ActiveDocument.Content.InsertAfter text:="right" &
Chr$(13)
Many Thanks
Jens