Microsoft KB Archive/105294: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 1: Line 1:
{|
{|
|width="100%"|
|width="100%"|
== WD: Unknown Command, Subroutine, or Function w/Undocumented "$" ==
== WD: Unknown Command, Subroutine, or Function w/Undocumented "$" ==
|}
|}


Line 23: Line 23:
== SYMPTOM ==
== SYMPTOM ==


In Microsoft Word when you run certain macros, you get the WordBasic error "Unknown Command, Subroutine, or Function." This problem does not occur in Microsoft Word 97 for Windows.
In Microsoft Word when you run certain macros, you get the WordBasic error "Unknown Command, Subroutine, or Function." This problem does not occur in Microsoft Word 97 for Windows.


<br />
<br />
Line 30: Line 30:
== CAUSE ==
== CAUSE ==


In Word 2.0 for Windows you could add an undocumented &quot;$&quot; statement to certain macro commands to activate the corresponding dialog box. Word 6.0 for Windows and Word 7.0 for Windows 95 do not support this syntax. Thus, any macro containing this statement will generate the &quot;Unknown Command...&quot; error.
In Word 2.0 for Windows you could add an undocumented "$" statement to certain macro commands to activate the corresponding dialog box. Word 6.0 for Windows and Word 7.0 for Windows 95 do not support this syntax. Thus, any macro containing this statement will generate the "Unknown Command..." error.


<br />
<br />
Line 37: Line 37:
== MORE INFORMATION ==
== MORE INFORMATION ==


The NetworkTemplateStorage macro provided in the Word 2.0 for Windows NEWMACRO.DOC is an example of a macro using the undocumented WordBasic statement, FileNew$. Macros using the undocumented &quot;$&quot; statement will no longer function correctly in Word 6.0 or 7.0. This omission is by design.<br />
The NetworkTemplateStorage macro provided in the Word 2.0 for Windows NEWMACRO.DOC is an example of a macro using the undocumented WordBasic statement, FileNew$. Macros using the undocumented "$" statement will no longer function correctly in Word 6.0 or 7.0. This omission is by design.<br />
<br />
<br />
For more information on this undocumented statement and an example of the proper syntax for calling a dialog, query on the following words in the Microsoft Knowledge Base:
For more information on this undocumented statement and an example of the proper syntax for calling a dialog, query on the following words in the Microsoft Knowledge Base:

Latest revision as of 09:58, 20 July 2020

WD: Unknown Command, Subroutine, or Function w/Undocumented "$"

Q105294



The information in this article applies to:


  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows, versions 7.0, 7.0a





SYMPTOM

In Microsoft Word when you run certain macros, you get the WordBasic error "Unknown Command, Subroutine, or Function." This problem does not occur in Microsoft Word 97 for Windows.



CAUSE

In Word 2.0 for Windows you could add an undocumented "$" statement to certain macro commands to activate the corresponding dialog box. Word 6.0 for Windows and Word 7.0 for Windows 95 do not support this syntax. Thus, any macro containing this statement will generate the "Unknown Command..." error.



MORE INFORMATION

The NetworkTemplateStorage macro provided in the Word 2.0 for Windows NEWMACRO.DOC is an example of a macro using the undocumented WordBasic statement, FileNew$. Macros using the undocumented "$" statement will no longer function correctly in Word 6.0 or 7.0. This omission is by design.

For more information on this undocumented statement and an example of the proper syntax for calling a dialog, query on the following words in the Microsoft Knowledge Base:

filenew$ and undocumented

Additional query words: convert template

Keywords : wordnt kbmacroexample ntword word6 word7 word95
Issue type :
Technology :


Last Reviewed: November 4, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.