Grammar Checking Programs to Use with Word for Windows

ID: Q73026

The information in this article applies to:

SUMMARY

It is possible to use the RecordNextCommand macro to record the syntax of the next WordBasic command executed into an open macro window in Microsoft Word.

MORE INFORMATION

The RecordNextCommand macro can be helpful when you are writing a macro and are unsure of the syntax for a particular command. The RecordNextCommand will insert the syntax of the next command executed into the open macro window.

Word versions 6.0, 7.0

To activate the RecordNextCommand in Word for Windows 6.0 and 7.0, do the following:

1. In the Macro Editor, place your insertion point at the spot

   where you wish the recorded command to begin.

2. Switch to an open document window from the Window menu or by
   pressing Ctrl-F6), or open a new document.

3. From the Macro Editor toolbar, which is still showing above
   the Ruler, press the button second from left, a dot with a
   number "1" next to it. (If you're not sure which button, the
   Toolbar Hint will say "RecordNextCommand" when your mouse
   pointer is positioned on the button.)

4. Your mouse pointer will grow an icon resembling an audio
   cassette, to indicate that the Macro Recorder is active.

5. Perform the action that is to be recorded into your macro.
   (You may re-press the button to abort the recording.)

6. Once the command is completed, the recorder will place the
   command syntax into the macro window. Switch back to the open
   macro sheet to view the recorded syntax.

There is no pre-assigned shortcut key for RecordNextCommand in Word for Windows version 6. For information about creating a shortcut key or assigning RecordNextCommand to a menu or toolbar, refer to pages 716-728 of the Microsoft Word for Windows version 6.0 User's Guide.

Word for Windows version 2.0

To activate the RecordNextCommand in Word for Windows 2.x, do the following:

1. Follow step 1 below in the section on version 1.x.

2. From the Tools menu, choose Macro and press ALT+C to select the

   Commands option button in the Show box. This selects all macro
   commands.

3. Select RecordNextCommand from the list of available macros and
   press ENTER. (Make sure that you have opened a macro menu at this
   point by selecting Macro from the Tools menu and giving your macro
   a name. Choose Edit to open a macro window).

4. Follow step 4 below.

5. Follow step 5 below.

Word for Windows versions 1.x

To use the RecordNextCommand macro in Word for Windows version 1.x, position the cursor on the line where the recorded syntax should appear in the macro window, and do the following:

1. Switch to an open document window from the Window menu or open a

   document. (Make sure that you have a macro window open as well by
   choosing Edit from the Macro menu, giving a name to your macro, and
   then pressing ENTER.)

2. From the Macro menu, choose Run and press ALT+A to select the
   Show All check box (if not already selected).

3. Select RecordNextCommand from the list of available macros and
   press ENTER.

4. "REC" will now appear in the status bar at the bottom of the
   Word for Windows screen to indicate that the Macro Recorder is
   active.

5. Perform the command that is to be recorded into the macro sheet.

Once the command is completed, the recorder will place the command syntax into the macro window. Switch back to the open macro sheet to view the recorded syntax.

Note: If no macro windows are open, the RecordNextCommand macro will beep when executed.

The RecordNextCommand macro can be added to the Macro menu by using the Assign to Menu function (refer to page 195 of the "Microsoft Word for Windows User's Reference" for more information on adding macros to menus).

REFERENCES

"Microsoft WordBASIC Primer," by Russell Borland, page 42 "Microsoft Word for Windows User's Guide," version 2, pages 764-5 "Microsoft Word for Windows User's Guide," version 6, pages 716- 728

Kbcategory: kbusage kbmacro KBSubcategory: Additional query words: 1.0 1.1 1.1a 1.x 2.0 2.0 word6 winword 6.0.1 6.0a 6.0c 7.0 word95 winword2 2.0a 2.0b 2.0c 6.0 6.0a 6.0c macword word7

Last Reviewed: July 30, 1997