| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Complete Alpha Listing >====== #EXPAND (expand a user defined macro) ====== | [[ error display source generation error .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ export export symbol to text .htm|{{btn_next_n.gif|Next page}}]] | | || **#EXPAND ( **//%macro name //**)** {{blk2blue.jpg|blk2blue.jpg}} | **#EXPAND** | Expands a user defined macro. | | //%macro name// | A previously declared macro symbol. | **#EXPAND** is used to expand a previously defined macro into the generated source code. Using #DEFINE and #EXPAND to define and expand macros for commonly used code sections will lead to cleaner template code while hiding unneeded target code from immediate view. **Example:** **#EXPAND****(%InRangeCheck)** **The above template code will cause the following code to be generated:** **  IF %ControlUse <;= TODAY()** **   SELECT(?%ControlUse)** **  END** **See Also:     **[[ define user defined macro .htm|#DEFINE]]