This VBA macro streamlines the process of downloading and parsing XML reports from Alma Analytics via its REST API. It dynamically extracts column headers and row data, then populates them into an Excel worksheet—perfect for librarians looking to automate data retrieval and simplify reporting in Excel or Power BI. If you are new the Excel Developer, you may need to check these links first:
Bonus: Remove scientific notation for better displaying of MMS IDs
Handles errors gracefully (HTTP and XML parsing)
Internet access
Save the Excel workbook to a macro enabled file (*.xlsm)
Run the macro ParseXMLWithDynamicHeaders, the macro will:
Parse the XML response. Extract column headers and data rows. Populate them into the worksheet.
** AI used to build this page
For questions or support, please reach out via GitHub Issues. Stay in the loop—follow my GitHub for code updates.

0 Comments.