+ Reply to Thread
Results 1 to 7 of 7

Exporting to new workbooks by column values

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    Madrid, Spain
    Posts
    46

    Exporting to new workbooks by column values

    Hello all, I would like to know if it possible to create the following program. Basically I want to create a program that will read a pre-generated excel sheet with about 6,000 rows and about 50 columns. I want it to then filter the results by for example, names, and then have those names export to another excel sheet, and do the same for everyname. (maybe there ar 100 rows for one name).

    There is an example of the extract attached. If you look at column Z, you can see that it says "responsable", I would like to create a excel file for every responsable.

    THANK YOU SO MUCH FOR YOUR HELP!
    Attached Files Attached Files
    Last edited by cultavix; 11-24-2008 at 06:21 AM. Reason: i am trying to fit the needs

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Yes it is, and it is not difficult.

    You could easily get some starter code by doing that action for one specified name with the macro recorder on, and then amend this code to work for all names.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I have posted various examples on the board to do this, one monlt today.

    Despite being asked your question title still does not comply with the rules - you wouldn't find anything constructive with a google search using

    "Is this theoretically possible to do with VBA ?
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    09-16-2008
    Location
    Madrid, Spain
    Posts
    46
    I have loaded the master list, filtered out results by a responsable, and then copied the information, and then created a new excel, pasted the information and saved the file.

    Here is the code.
    Please Login or Register  to view this content.

    The problem I see with this are 2 things.

    #1 - I need to know how to record it so that it will copy and paste all the data after it is filtered.

    #2 - I need to edit the VB after so that it will save the file as the name of the responsable, for example in this case "AGUADO-LARA"

    Note: I am quite new with VBA and im learning as I go, the recorder is much more useful than I thought.
    Last edited by cultavix; 11-24-2008 at 06:34 AM.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Take a look at the code here, it creates a sheet for each unique name in column A

    http://www.excelforum.com/excel-prog...ll-sheets.html

  6. #6
    Registered User
    Join Date
    09-16-2008
    Location
    Madrid, Spain
    Posts
    46

    Question

    Instead of specifying the user, can I just have it separate a file for each different responsable user?

    Example. I have Peter, John, and Jimmy in the Responsables column. I want to create a new exel file for Peter, John and Jimmy. Maybe each one has 20 or 30 rows, depends.

    Also, instead of specifying the area of "$A$1:$BA$4675", how do I specify all ?

    Thank you!

  7. #7
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Try something like

    Please Login or Register  to view this content.

+ 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