Please see TPSQLMacroQuery methods short descriptions below:
Reopen
Reopens current query.
MacroByname
Returns Macros property item which property Name is equal to Value.