AccessMyLibrary provides FREE access to millions of articles from top publications available through your library.

Create your own macro commands: Symphony macros. (obvious macro code patterns may require subroutine creation)

Lotus

| September 01, 1988 | Gasteiger, Daniel | COPYRIGHT 1987 Lotus Publishing Corp. (Hide copyright information)Copyright

CREATE YOUR OWN MACRO COMMANDS

Sometimes when you write a macro, you may wonder why Lotus Development Corp. didn't include a particular command in the Symphony Command Language. If you find yourself repeating a sequence of keystrokes throughout the body of a macro, you should invent your own commands.

Homemade macro commands are easy to create. Many commands require that you write only a single line of macro code. Some, however, entail extra effort and are worth creating only if you will use them again and again. (We've explored custom macro commands in past issues of LOTUS under the moniker subroutines.) Let's see how to create a macro command and look at a few custom commands that you might use in any macro.

CALL OF THE SUBROUTINE

You can create your own macro command by entering macro code and assigning it a range name. For example, the code shown in the following figure is the basis for a macro command named cur2:

Enter labels as you would when creating any macro. Then assign the label in column A as a range name for the adjacent cell of column B: Select MENU Range Name Labels Right and indicate cell A1.

You can test this custom macro command by pressing the USER key (the F7 key on most computers) and entering the macro's name (cur2). Sympthony immediately processes the commands stored in cell B1. Those commands are [MENU]FC2[is approx.][is approx.], and assuming that the current window is a SHEET window, they cause Symphony to format the current cell for currency with two decimal places.

Let's use this formatting macro as a custom macro command (also known as a subroutine call). Enter the following labels in the same worksheet in which you entered the macro named cur2:

Assign this macro's name as you did for the first macro, the move the cell pointer to cell A6 and give it a test run. To start the macro, …

Related articles from newspapers, magazines, journals, and more
The basics of advanced macro commands; macros can go beyond the capabilities...
Magazine article from: Lotus Gasteiger, Daniel October 1, 1990 700+ words
8 database enhancements. (Lotus 1-2-3 databases) (tutorial)
Magazine article from: Lotus Tucker, Scott April 1, 1990 700+ words
Don't be intimidated; macro conventions make complex code understandable....
Magazine article from: Lotus Fitzgerald, Cynthia September 1, 1992 700+ words
Answers to your questions about Lotus products.
Magazine article from: Lotus Gasteiger, Daniel September 1, 1991 700+ words
Avoid pointer movement. (using the PUT command in Lotus 1-2-3 macros) (tutorial)
Magazine article from: Lotus Gasteiger, Daniel May 1, 1990 700+ words
©2013 Gale, a part of Cengage Learning. All rights reserved. Contact us | Privacy policy | Terms and conditions

The AccessMyLibrary advertising network includes: womensforum.com GlamFamily