Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word
Message
From
01/05/2004 05:28:48
Bhavesh Desai
Apex Softcell (India) Pvt. Ltd.
India
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Re: Word
Miscellaneous
Thread ID:
00899809
Message ID:
00900004
Views:
18
Hi Terry,
Thanks to you all, now it is working. However one small problem I am unable to change the font size or font. The coding is as follows

loRange=activedocument.range()
With loRange
With .Font
.name="Times New Roman"
.size="12"
Endwith
.ParagraphFormat.Alignment=wdAlignParagraphLeft
.Insertafter("THIS IS THE MAIN HEADER")
.MoveEnd(wdParagraph,1)
.Collapse(wdCollapseEnd)
With .Font
.name="Times New Roman"
.size="10"
Endwith
.Insertparagraphafter()
.Insertafter("THIS IS THE SUB HEADER")
.Collapse(wdCollapseEnd)
Endwith

Both the main header and sub header appear in size 12

Regards and Thanks

Bhavesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform