Used to search for a macro with the specified name.
function MacroByName(const Value: string): TMacro;
Call the MacroByName method to find a Macro with the name passed in Value. If a match is found, MacroByName returns the Macro. Otherwise, an exception is raised. Use this method instead of a direct reference to the Items property to avoid depending on the order of the items.
To locate a macro by name without raising an exception if the parameter is not found, use the FindMacro method.
To set a value to a macro, use the TMacro.Value property.