Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2022 by Barry MacDonnell. All Rights Reserved.

Page updated Aug 4. 2020

EZMenu - An example of a pop-up dialog menu created with a few simple macro commands

Download EZMENU.ZIP (v1.0; 10/19/06; 5,552 bytes)

Compatible with WordPerfect 8 and later versions

WordPerfect 11 users: See important information about using macros in the first release of WP11 ( at the top of this page.

Downloading, Documentation, Modifications, and Support

EZMenu.wcm is an example of a simple menu using the Menu() command and some simple Switch() statements containing various macro commands.

The menu produced by this macro can use numbers (1...9) or letters (A...Z) followed by the menu choice in text. Press the number or letter, or click on the choice with your mouse, and the command assigned to that choice will execute.

In this sample macro, the choice is to simply display a small message box with an OK button to dismiss it. Play the macro to see its effects:

•  The macro will first display a small menu with the labels "1. First choice," "2. Second choice," etc. 

•  Pressing the "Next menu" choice on the first menu will take you to a second (sub-)menu with similar choices -- but using leading letters (as a demonstration) instead of numbers to organize the choices.

•  Any such menu can have a choice to display several other menus, as demonstrated by the macro. Therefore, you can "nest" as many menus as needed.


☼  You can modify it: Open the macro like any other document to view the instructions at the top of the code, which will tell you how to modify it for your needs.

☼  You could use such menus for various purposes: to play other macros, type text into a document (with the Type command), insert and expand QuickWord abbreviations, load a new document based on a custom template, etc. The menu simply presents your list of choices; the code in the Switch() command section carries out other macro commands based on a particular choice.

☼  Instead using a macro with a pop up dialog of menu choices, you can directly add choice selections to WordPerfect's top menu (File...Help). See the Customize a Menu section here.

☼  For a variation on a "menu" using a vertical toolbar with text labels positioned along one side of the main WordPerfect document window, see the PDF file, How to create a vertical toolbar with text buttons to access your favorite folders, templates and files.

☼  For a simpler form of the EZMenu macro (without "nested" sub-menus), see the plain-text macros on the "Two-key macros" page (e.g., Samples 3, 4, and 5). For an even simpler one, see Footnote #2 on the Boilerplate page here.

Note that "plain text macros" are just the un-compiled written code commands which can be copied as a block from the web page into your WordPerfect program and saved as a functioning macro. See here for how to do this (it's easy!).