Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and Word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00179928
Message ID:
00180134
Vues:
29
>MS Word references several constants when viewing code in the VB editor. Where can I get a listing of what these constants are. E.G.
>
>ActiveDocument.SaveAs FileName:="ADL75M757F27.doc", FileFormat:= _
> wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:= _
> True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:= _
> False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
> SaveAsAOCELetter:=False
>
>I can understand the fileName and the logical False, but where can I find the values Word uses for 'wdFormatDocument'?
>
>TIA

Bret- the documents John and David listed might be easiest, but for future reference you should know the source of the values.

In Word (or Excel), after opening the VBA editor, puch F2 to open the VBA object browser. On the top, you can enter the name of your constant and search for it. After finding it, highlight it in the list and look doen at the bottom of the browser for the value of the constant.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform