All templates
Excel AutomationIntermediate
Consolidate Excel Reports
Robomotion•Updated 6 months ago

Overview
Combines rows from multiple Excel workbooks in a folder into one consolidated sheet. A reporting helper that removes repetitive copy-paste work.
Consolidate Excel Reports
Large-scale reporting is a typical process across many businesses and organizations. Robomotion makes gathering data and creating reports a fast and fully automated task.
What Consolidate Excel Reports can do
- Download Fixtures subflow, then Init Combined builds
msg.fixtures_dir,msg.combined_table = null, andmsg.output_path = <fixtures>/Consolidated Report.csv. - Get Excel Files Details subflow populates
msg.file_listandmsg.recipient_email; Validate List (Core.Programming.Function,outputs: 2) short-circuits toCore.Flow.Stopwhen either is missing. Core.Flow.Label+Core.Flow.GoTodrive a loop around aCore.Programming.ForEachovermsg.file_list(msg.current_file); the Read and Append subflow merges each workbook's rows intomsg.combined_table.- Serialize Combined CSV (Function) flattens
msg.combined_tableintomsg.consolidated_csv;Core.FileSystem.WriteFilewrites it tomsg.output_path; Build Attachments setsmsg.attachments = [msg.output_path]andmsg.retry_count = 0. Robomotion.MicrosoftOutlook.SendMailsends the CSV tomsg.recipient_email; aCore.Trigger.Catchretries once after a 5sCore.Programming.Sleep, then stopsfailed. Success ends with a Message Box showing the save path and recipient.
Behind the scenes
Robomotion.MicrosoftOutlook.SendMailis flaky on the first call if Outlook hasn't finished initialising — the single retry with a 5s sleep absorbs that cold-start window.- Outlook is intentionally left running after the send so the user can inspect the Sent folder; no explicit close node.