WD97: Writing Macro Code for VBA and WordBasic Branching (163618)
The information in this article applies to:
- Microsoft Word 97 for Windows
This article was previously published under Q163618 SUMMARY
This article includes sample Visual Basic code that demonstrates how to
determine the version of Word for Windows currently installed when using
OLE automation. Based on the version of Word, the code will conditionally
branch to use WordBasic commands if the version of Word is earlier than
Word 97. If the version of Word returned is equal to or greater than Word
97, the code will branch to use Visual Basic for Applications commands.
You may want to use this conditional branching if you are using more than
one version of Word on your computer.
Modification Type: | Major | Last Reviewed: | 11/14/2000 |
---|
Keywords: | kbcode kbhowto kbinterop kbprogramming KB163618 |
---|
|