create macro shortcut in code
//2 dimension array
string[,] replacements = new string[14, 2];
replacements[0, 0] = "INVOICENO";
replacements[0, 1] = userInfo.GetStringValue("TaxInvoice", "");
MacroResolver resolver = MacroContext.CurrentResolver;
resolver.SetNamedSourceData(replacements);