Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP & MSWORD
Message
 
À
13/01/1999 15:18:27
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00175624
Message ID:
00175683
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform