How to Create Multiple Reports from One Sheet

newbie18

New Member


I have a large sales data report containing several groups of customers. I would like to automatically generate individual usagereports (separate files so not by tab) for each group every month and save themon a shared drive. I would like to alsohave each report automatically be customized with different headers (based oncustomers’ request); however, I could evade this if it is not possible.



Here is an example of my sales data. The group name column is what I would like touse to generate the reports. Is there amacro or method to do this? I know that Ican achieve this process by creating a pivot table, and then splitting out thedata by group into different tabs, but I would like to customize each report (ifpossible) and produce individual reports to save it in different folders.



Customer IDItem IDDocument Date ID
Accounting Year DESCCalendar Month DESCCalendar Year IDQty SoldPrice Paid EachSalesGroup Name
2091039970757042598/12/2019Fiscal 2020August 201920191$ 36.00$ 36.00ABC
209103998UN57585118/12/2019Fiscal 2020August 201920190$ 1.52$ 1.52DEF
209103999UN57585298/12/2019Fiscal 2020August 201920190$ 1.76$ 1.76GHI
2091042890757042598/12/2019Fiscal 2020August 201920191$ 36.00$ 36.00JKL
<colgroup><col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3072;"> <col width="70" style="width: 53pt; mso-width-source: userset; mso-width-alt: 2503;"> <col width="114" style="width: 85pt; mso-width-source: userset; mso-width-alt: 4039;"> <col width="135" style="width: 101pt; mso-width-source: userset; mso-width-alt: 4807;"> <col width="128" style="width: 96pt; mso-width-source: userset; mso-width-alt: 4551;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3527;"> <col width="56" style="width: 42pt; mso-width-source: userset; mso-width-alt: 1991;"> <col width="118" style="width: 89pt; mso-width-source: userset; mso-width-alt: 4209;"> <col width="92" style="width: 69pt; mso-width-source: userset; mso-width-alt: 3271;"> <col width="191" style="width: 143pt; mso-width-source: userset; mso-width-alt: 6798;"> <tbody> </tbody>
 

Logit

Well-known Member
.
Yes, this is doable.

First you'll want a macro that searches Column J (Group Name) and copies all rows with the term ABC. Repeat the process for each of the other unique names.

Those copied rows will be pasted into a separate sheet set aside for each unique name.

Then you'll need another macro that saves each sheet as a separate workbook in the location you desire.

Plenty of example macros on this forum and the 'net.
 

Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Syntax errors
    Good Morning, Trying to compile a workbook, I keep getting a few errors. Here are the first two: [code=rich]Syntax Error: Function...
Top