Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP & MSWORD
Message
From
13/01/1999 15:18:27
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00175624
Message ID:
00175653
Views:
26
This is what was in the macro. What would this code be if it were VFP and not VB? I tried this and it doesn't work.
Selection.HomeKey Unit:=wdLine, Extend:=wdExtend
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter

Jim
>>Is there anyone out there that knows how to Center text in word through OLE automation?
>>
>>very stuck, Please help
>
>Jim,
>
>Go into word and type sme text. Then turn on teh macro recorder, select the text and center it, shut off the recorder and then edit the macro it created. The asnwer will be there.
Thanks

Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform