Microsoft KB Archive/121603

“Command Unavailable” Error Converting DOSWord Glossaries

PSS ID Number: Q121603 Article last modified on 11-01-1994

6.00 | 6.00 6.00a 6.00c

MS-DOS | WINDOWS

= SYMPTOMS =

When attempting to convert Word for MS-DOS glossary entries into Word for Windows AutoText entries, you may receive a WordBasic error 509, “Command Unavailable.”

In some cases, you will not receive this WordBasic error, and the glossaries will appear to convert; however, the AutoText entries will be empty.

= CAUSE =

The Word for MS-DOS macro (Convert_Glossary in the 60CONVRT.GLY) that inserts the glossary entries into a document does not function correctly when too many (usually more than 30) glossary entries exist.

= RESOLUTION =

You can use the following steps to modify the Word for MS-DOS Convert_Glossary macro:

  Start Word 6.0 for MS-DOS.   In a new document, choose Glossary from the Edit menu. In the Glossary dialog box, choose the Open Glossary button and select 60CONVRT.GLY.   Choose the Close button.   From the Tools menu, choose Macro.   Select the Convert_Glossary macro.   Choose the Edit button.   The macro code is shown in a document window. Search for the following lines of code: <“clipboard” and GlossaryEntry<>“date” and GlossaryEntry<>“dateprint” and GlossaryEntry<>“page” and GlossaryEntry<>“nextpage” and GlossaryEntry<>“time” and GlossaryEntry<>“timeprint” and GlossaryEntry<>“footnote”>> [::<<GlossaryEntry>>::]<Enter><<GlossaryEntry>>^^<F3> <ctrl X><Space><ctrl X><Space>:||:<Enter> < > </li>  Replace: <ctrl X><Space><ctrl X><Space> With: The new lines of code should read: <<if GlossaryEntry<>“clipboard” and GlossaryEntry<>“date” and GlossaryEntry<>“dateprint” and GlossaryEntry<>“page” and GlossaryEntry<>“nextpage” and GlossaryEntry<>“time” and GlossaryEntry<>“timeprint” and GlossaryEntry<>“footnote”>> <Esc>[::<<GlossaryEntry>>::]<Enter><<GlossaryEntry>>^^<F3> :||:<Enter> < > </li>  Move to the top of the document window (press CTRL+HOME). </li>  Select all of the code (press CTRL+SHIFT+END). </li>  From the Tools menu, choose Macro. </li>  Select the Convert_Glossary macro. </li>  Choose the Define button. </li>  Choose the OK button to replace the existing macro. </li>  From the File menu, choose Close All. </li>  Choose the No button when prompted to save changes to Document1. </li>  Choose the Yes button to save changes to 60CONVRT.GLY. </li></ol>

For additional information on converting Glossaries between Word version 6.0 for MS-DOS and Word version 6.0 for Windows, please see the following article in the Microsoft Knowledge Base:

ARTICLE-ID: Q107229 TITLE : Converting Word for MS-DOS Glossaries into WinWord 6.0

KBCategory: kbinterop KBSubcategory: textconv kbautotext Additional reference words: 6.00 6.00a 6.00c dosword winword glossary auto text autotext convert gloss.exe dosword winword prb

=
================================================================ Copyright Microsoft Corporation 1994.