"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
 

-------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
 - Microsoft Word for MS-DOS, version 6.0
-------------------------------------------------------------------
 
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:
 
 1. Start Word 6.0 for MS-DOS.
 
 2. In a new document, choose Glossary from the Edit menu. In the Glossary
    dialog box, choose the Open Glossary button and select 60CONVRT.GLY.
 
 3. Choose the Close button.
 
 4. From the Tools menu, choose Macro.
 
 5. Select the Convert_Glossary macro.
 
 6. Choose the Edit button.
 
 7. The macro code is shown in a document window. Search for the following
    lines of code:
 
    <<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>
    <ctrl X><Space><ctrl X><Space>:||:<Enter>
        <<endif>>
 
 8. Replace:  <ctrl X><Space><ctrl X><Space>
    With:     <ctrl end>
 
    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>
    <ctrl end>:||:<Enter>
        <<endif>>
 
 9. Move to the top of the document window (press CTRL+HOME).
 
10. Select all of the code (press CTRL+SHIFT+END).
 
11. From the Tools menu, choose Macro.
 
12. Select the Convert_Glossary macro.
 
13. Choose the Define button.
 
14. Choose the OK button to replace the existing macro.
 
15. From the File menu, choose Close All.
 
16. Choose the No button when prompted to save changes to Document1.
 
17. Choose the Yes button to save changes to 60CONVRT.GLY.
 
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.