Please see here (bottom of page)
Additionally, for an explnation of exporting channel Macros to Global Macros, please check here.