Article ID: 190259
Article Last Modified on 1/23/2007
119591 How to Obtain Microsoft Support Files from Online Services
#INCLUDE WordVBA.HSample 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: WD97VBA kbDSupport kbDSE vfoxwin kbOLE
Keywords: kbdownload kbfile kbinfo KB190259