Microsoft Office Excel Automation

Baiju Kumar Roy 0 Reputation points
2026-01-16T16:09:33.1333333+00:00

I have an excel file where two sheets are there. First sheet is Summary. On Summary sheet some name wise data is there. I have created a report for one of the names on the the second sheet called Statement. I want to multi selection name basis the multi selection format either excel or pdf report to generate separately with the file name as the same name of the person like the report i created and saved in the same folder.

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Harold Milan 17,190 Reputation points Independent Advisor
    2026-01-16T19:52:09.6933333+00:00

    Hi,

    May I suggest use a simple VBA macro in Excel to automatically create separate PDF files for every item in a list. The macro changes the key cell that updates the report (like a Student ID), loops through each value in your list, refreshes the report, and exports a PDF for each one.

     

    Just customize:

    the cell that updates the report,

    the start of your list, and

    the folder/filename pattern for saving PDFs.

    Once set up, click the assigned button and Excel instantly generates all PDFs fast and hands‑free.

    I hope this helps!

     


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.