+ Reply to Thread
Results 1 to 2 of 2

Macro to create reporting

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    south carolina
    MS-Off Ver
    Excel 2003
    Posts
    1

    Macro to create reporting

    I need to create a macro that will:
    - take the master sheet and break out the data into a sheet for each supplier
    - when the other tabs are generated, the generation date and the header are listed as they are on the example
    - automatically to landscape and scale to 11x8.5" print size

    Not sure if I am asking too much or if I would need to run mulitple macros. I can't seem to get some of the other examples listed in the forum to work for me just to seperate the data into individual sheets (because I'm very new to macros!). Learned a lot here so far today though!

    I appreciate any help in advance!OldStockReportSample.xlsx
    Last edited by JBeaucaire; 05-23-2013 at 10:24 AM. Reason: Moved to correct forum.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to create reporting

    'SHEET1 TO MANY SHEETS
    Here's a macro for parsing rows of data from one sheet to many sheets named for the same values in a specific column.
    It not only can parse the rows, it can create the sheets if they are missing. There is a sample sheet there where you can test this out.

    =================

    Based on your sample sheet, you only need to edit this:
    Please Login or Register  to view this content.


    Now the sheets that are created are normal layout. I simply used the macro recorder to record myself formatting a page the way you wanted, then added that code to the section that creates a new page when needed.

    Please Login or Register  to view this content.

    Those are the only edits needed, the rest of the code will work as given.
    Last edited by JBeaucaire; 12-27-2019 at 05:11 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1