Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP & MSWORD
Message
 
To
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:
00175683
Views:
25
Jim,

In the macro editor you can click on the constant (like wdLine) and then choose View-Definition from the VBA menu. This will tell you value of the constant, it happens that the constants in your example are;

wdLine = 5
wdExtend = 1
wdAlignParagraphCenter = 1

Next you need to covnert the calls from named parameters ( the Unit:wdLine stuff) to positional parameters like so (assuming that your word object is named oWord);

WITH oWord
Selection.HomeKey(5,1) &&wdLine=5 wdExtend=1
Selection.ParagraphFormat.Alignment(1) &&wdAlignParagraphCenter=1
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform