+ Reply to Thread
Results 1 to 6 of 6

One Master File that will be cut rows and saved into numerous files

  1. #1
    Registered User
    Join Date
    12-28-2009
    Location
    HK
    MS-Off Ver
    Excel 2003
    Posts
    1

    One Master File that will be cut rows and saved into numerous files

    I have an excel file that contains thousands of sales records in one work sheet.

    The first row contains different fields: Invoice, Sales person, ID code, Date, location, Sales detail etc...

    My boss wants every SALES PERSON to see their OWN records everyday.
    Cut and save sound stupid and very time consuming, is there any way to
    save time, so it will cut the work sheet by Sales Person in one click?
    (and leave the first row in each file?)

    Then it automatically saves into new files
    (Sales Person A)-(mmddyy).xls
    (Sales Person B)-(mmddyy).xls
    (Sales Person C)-(mmddyy).xls


    See the sample xls. The bottom part is the way I want to present.
    Attached Files Attached Files

  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: One Master File that will be cut rows and saved into numerous files

    This macro, which is adapted from one I already had, should do it for you. It will not only save the sheets for you, it will leave a set of alphabetized sheets in your main workbook too, for reference.

    Please Login or Register  to view this content.
    This macro goes into a regular module, not a sheet module or the ThisWorkbook module.
    _________________
    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!)

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: One Master File that will be cut rows and saved into numerous files

    See this earlier post of mine, it does what you want and saves to a speciied directoy. I see no reason to clutter th data book with unnecessary sheets so the data workbook remains unaltered.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by royUK; 12-30-2009 at 04:20 PM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

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

    Re: One Master File that will be cut rows and saved into numerous files

    Quote Originally Posted by royUK View Post
    I see no reason to clutter the data book with unnecessary sheets...
    A valid point.

    If the reference sheets are of no value, in my macro, just change this:
    Please Login or Register  to view this content.
    ..to this:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: One Master File that will be cut rows and saved into numerous files

    Quote Originally Posted by JBeaucaire View Post
    A valid point.

    If the reference sheets are of no value, in my macro, just change this:
    Please Login or Register  to view this content.
    ..to this:
    Please Login or Register  to view this content.
    If you do this you no longer require the check for the sheet name, nor the code to move the new sheet. Whichever method though you don't need to activate the sheet
    Last edited by royUK; 12-30-2009 at 01:14 PM. Reason: typos

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

    Re: One Master File that will be cut rows and saved into numerous files

    Hmm, true enough...worth a repost, I still "activate" at the top of the macro just to start from a semblance of the right spot, though that is preferentially debatable, too... anyway:
    Please Login or Register  to view this content.
    Go team!

+ 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