I've read the Office App FAQs about MS Word reading and writing of data by VB but I can't find something about writing in paragraph(adding paragraph), formatting the paragraph(into left,center,right,and justified)
Some help please
Printable View
I've read the Office App FAQs about MS Word reading and writing of data by VB but I can't find something about writing in paragraph(adding paragraph), formatting the paragraph(into left,center,right,and justified)
Some help please
Thread moved from the FAQ forum, which is not the place to post your questions.
try like
vb Code:
Dim somepara As Paragraph set somepara = wddoc.paragraphs.Add ' or paragraphs(2) somepara.Range.Text = "this is a test" somepara.Format.Alignment = wdAlignParagraphCenter