• Sounds perfectly do-able to me, though I have some questions:

    1) Does the proc always output recordsets with the same meta data?

    2) What do you want your output to look like? One Excel file or multiple? One tab or multiple?

    3) Have you thought about coding your proc with more complex logic so that it returns the following resultset, for all combinations of group and process code?

    GroupCode, ProcessCode, Res1, Res2, etc etc

    This could then be fired directly into a spreadsheet. Whether that works depends on your response to (2).

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.