|
-
Jan 28th, 2009, 06:49 AM
#1
Thread Starter
Hyperactive Member
MS Word Paragraph
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
-
Jan 28th, 2009, 07:36 AM
#2
Re: MS Word Paragraph
Thread moved from the FAQ forum, which is not the place to post your questions.
-
Jan 29th, 2009, 03:45 AM
#3
Re: MS Word Paragraph
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
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|