REM

Syntax

REM Comments

'Comments

Remarks

Designates explanatory text, which Word ignores when the macro is run. You can use an apostrophe (') instead of REM. Each notation has its advantages and disadvantages: REM makes it easier to distinguish comments from WordBasic instructions, but requires more space than an apostrophe.

Example

This example demonstrates four ways to include a comment in a macro:


REM MyMacro Title -- MyName Here
'More about MyMacro
ParaDown        'Move to start of next paragraph
ParaUp            REM Moves to start of previous paragraph