WD: Differences Between Word 6.0 and Word 7.0

ID: Q145348

The information in this article applies to:

SUMMARY

Most Word 6.x macros work correctly in Word 7.x without modification. However, portions of a macro that deal with operating system-specific commands or functions and new or updated features require revision. This article describes some of the differences in the statements and functions used by each version of Word. For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE ID: Q120767
   TITLE     : Porting 16-Bit WordBasic Macros to 32-Bit WordBasic Macros

MORE INFORMATION

Statements and Functions Used Only in Word 7.x

The following statements and functions are available only in Word 7.x:

   AddAddress
   AutomaticChange
   CountAutoCorrectExceptions()
   CountDocumentProperties()
   DeleteDocumentProperty
   DocumentHasMisspellings()
   DocumentPropertyExists()
   DocumentPropertyName$()
   DocumentPropertyType()
   DocumentProtection()
   EditFindHighlight
   EditFindNotHighlight
   EditReplaceHighlight
   EditReplaceNotHighlight
   FilePost
   FileProperties
   GetAddress$()
   GetAutoCorrectExeception$()
   GetDocumentProperty()
   HelpMSN
   Highlight
   HighlightColor()
   InsertAddress
   IsAutoCorrectException()
   IsCustomDocumentProperty()
   IsDocumentPropertyReadOnly()
   MailCheckNames
   MailHideMessageHeader
   MailMergeUseAddressBook
   MailMessageDelete
   MailMessageForward
   MailMessageMove
   MailMessageNext
   MailMessagePrevious
   MailMessageProperties
   MailMessageReply
   MailMessageReplyAll
   MailSelectNames
   NextMisspelling
   SetDocumentProperty
   SetDocumentPropertyLink
   ShowMe
   SpellChecked()
   TipWizard
   ToolsAutoCorrectCapsLockOff()
   ToolsAutoCorrectExceptions
   ToolsSpellingRecheckDocument

Statements That Use Version-Specific Arguments

The following statements use arguments that work in one version of Word but not in both versions.

   Statement                   Argument
   ---------------------------------------------------------------------

   ControlRun                  .Application = 0 is not valid in Word for
                               Windows version 7.x.

   DlgVisible                  The .LastIdentifier argument is not valid in
                               Word 6.x.

   FileFind                    .SearchName, .Options, .PatternMatch,
                               .View, .SortBy, .ListBy, .SelectedFile,
                               .ShowFolders, .Add, and .Delete are ignored
                               in Word 7.x.

   FilePrintSetup              The .DoNotSetAsSysDefault argument is valid
                               in Word 7.x only.

   HelpTipOfTheDay             The .StartupTips argument is not valid in
                               Word 7.x.

   ToolsAutoCorrect            The .CapsLock argument is valid in Word 7.x
                               only.

   ToolsOptionsAutoFormat      The .ApplyBulletedLists, .ReplaceOrdinals,
                               .ReplaceFractions, .ApplyBorders,
                               .ApplyNumberedLists, and .ShowOptionsFor
                               arguments are valid in Word 7.x only.

   ToolsOptionsCompatibility   The .NoSpaceForUL, .NoExtraLineSpacing,
                               .TruncateFontHeight, and .SubFontBySize
                               arguments are valid in Word version 7.x
                               only.

   ToolsOptionsEdit            The .TabIndent argument is valid in Word
                               version 7.x only.

   ToolsOptionsGeneral         The .Effects3d argument is ignored in Word
                               7.x. The .ConfirmConversions and
                               .TipWizardActive arguments are valid in Word
                               7.x only.

   ToolsOptionsRevisions       The .HighlightColor argument is valid in
                               Word 7.x only.

   ToolsOptionsSpelling        The .AutomaticSpellChecking,
                               .HideSpellingErrors, and .RecheckDocument
                               arguments are valid in Word 7.x only.

   ToolsOptionsView            The .Highlight argument is valid in Word
                               7.x only.

   ViewToolbars                The .ToolTipsKey argument is valid in Word
                               7.x only.

Statements and Functions with Version-Specific Behavior

The following statements and functions yield different results depending on which version of Word you are using.

   Statement/Function          Behavior
   -----------------------------------------------------------------------

   AppInfo$()                  The value 26 is not available in Word 6 and
                               generates and error.

   Declare                     In Word 6.x, you can only declare external
                               functions in 16-bit libraries. In Word 7.x,
                               you can only declare external functions in
                               32-bit libraries. In addition, external
                               function names are case-sensitive.

   FileConfirmConversions      In Word 7.x, selects or clears the Confirm
                               Conversions at Open check box on the General
                               Tab in the Options dialog box (Tools Menu).

   FileFind                    In Word 7.x, you cannot specify multiple
                               folders with .SearchPath, and you cannot
                               display the FindFile dialog box using a
                               Dialog or Dialog() instruction.

   FileOpen                    In Word 7.x, you can specify only one file
                               per FileOpen instruction.

   GetPrivateProfileString$()  In Word 6.x, the arguments specify sections
                               and key names in a particular settings file.
                               In Word 7.x, the arguments specify keys and
                               values in the registry.

   GetSystemInfo$()            The strings returned by the values 23, 25,
                               and 27 are meaningful only in Word 6.x for
                               Windows running in Windows 3.x.

   HelpExamplesAndDemos        In Word 7.x, the examples, demonstrations,
                               and previews are not available and these
                               statements generate errors.

   HelpQuickPreview            See HelpExamplesAndDemos.

   ListCommands                This statement is not valid in Word 6.x

   SetPrivateProfileString     In Word 6.x, the arguments specify settings,
                               sections, and key names in a particular
                               settings file. In Word 7.x, the arguments
                               specify settings, keys, and values in the
                               registry.

   Shell                       In Word 7.x, you cannot depend on a program
                               started with Shell to be finished loading
                               before the instructions following the Shell
                               statement in your macro are run.

   ToolsAdvancedSettings       In Word 7.x, you cannot use this statement
                               to modify settings in the registry.

REFERENCES

"Microsoft Word Developer's Kit"

KBCategory: kbref kbmacro KBSubcategory:

Additional query words: 16 bit 32 bit differences dissimilar dissimilarities vary variance diverge divergence

Keywords          : wordnt kbmacroexample word6 word7 word95 
Version           : WINDOWS:6.0,6.0a,6.0c,7.0,7.0a
Platform          : WINDOWS
Issue type        : kbinfo

Last Reviewed: January 22, 1999