Dear Members

I have a lproblem with my vba script

Process:
I create with vba a new word-document and open a label-template to get the perfect table.
Now i write some text into the table cells. That works perfect.

The problem: i want to style the word-table cells with excel vba

I need to set it align center

Please Login or Register  to view this content.
i also need to style only some words from the string data like this

oDoc.Tables(1).Cell(zeile, spalte).range.Text = "[bold]i'm bold[/bold]i'm normal"

and do a linebreak:

oDoc.Tables(1).Cell(zeile, spalte).range.Text = "first line [/n]second line" - how can i do this?


thank you a lot!