Arbortext Command Language > Functions by Alphabetical Listing > macro_run
  
macro_run
macro_run (name[, doc])
This function runs the macro named name in the document-scope specified by doc.
This function returns 1 (True) if the macro was executed. macro_run returns 0 if no such macro exists in the current scope. macro_run can not be used to execute command aliases.
name — The macro to run.
doc — Optional. The identifier of the document tree. If doc is omitted or 0, the current document scope is used.
If doc is the current document, the macro can also be run by giving its name. That is:
macro_run("MyMacro")
is the same as
MyMacro
Related Topics
macro_record built-in function