SAMPLE: Wd97vba.exe Contains Header File w/ Word VBA ConstantsID: Q190259
|
Wd97vba.exe contains a header file, Wordvba.h. The Wordvba.h header file contains the preprocessor directives used by Microsoft Word 97 SR-1 in Visual Basic for Applications (VBA) code.
The following file is available for download from the Microsoft Software Library:
Wd97vba.exeRelease Date: 07-27-1998
Q119591 How to Obtain Microsoft Support Files from Online ServicesMicrosoft Word 97 uses the MSword8.olb type library to obtain the values of preprocessor directives used in Word VBA code. Visual FoxPro can not take advantage of the type library. Using the values of these preprocessor directives requires you to reference the constants in the Word Visual Basic Applications Object Browser, or some other tool that can read information from the type library.
#INCLUDE WordVBA.H
Sample code for using the Word VBA header file instead of having to find
the values of the preprocessor directives follows.
#INCLUDE WordVBA.H
oword=CREATEOBJECT("Word.Application")
WITH oword
.Documents.ADD
.Visible=.T.
*-- Change the view type based upon the view type
*-- used when Word was last used.
IF .Activewindow.View.Splitspecial = wdpanenone && wdpanenone=0
.Activewindow.Activepane.View.Type = wdpageview && wdpageview=3
ELSE
.Activewindow.View.Type = wdPrintPreview && wdPrintPreview=4
ENDIF
ENDWITH
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Dean
Christopher, Microsoft Corporation
Additional query words: kbDSupport kbDSE vfoxwin kbOLE
Keywords : kbVFp FxinteropOle
Version : WINDOWS:5.0a,97
Platform : WINDOWS
Issue type :
Last Reviewed: August 8, 1999