Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and Word
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00179928
Message ID:
00180134
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform