Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More MS Word
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
More MS Word
Divers
Thread ID:
00341316
Message ID:
00341316
Vues:
65
Does anyone know how to translate the following MS Word macro to VFP code? My goal is insert "AK" if the contents of field "state" is blank.
ActiveDocument.MailMerge.Fields.AddIf Range:=Selection.Range, MergeField:= _
"State", Comparison:=wdMergeIfIsBlank, CompareTo:="", TrueAutoText:= _
"MailMergeInsertIf1", TrueText:="", FalseAutoText:="MailMergeInsertIf2", _
FalseText:=""
Thanks in advance for your help.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform