+ Reply to Thread
Results 1 to 10 of 10

Excel sheet - Create multiple files from rows

  1. #1
    Registered User
    Join Date
    05-02-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile Excel sheet - Create multiple files from rows

    Hi Team,

    So heres is what I'd like to happen.

    I have one master file in the attachment "Example" Sheet.

    I'd like VBA code if possible I've seen it done before... but without the drop down list intact.

    I'd like to create a file for each ROW in this excel file.

    so a loop if possible to go through each row until you see an empty row.

    in this example: I'd have 3 extra files.

    each with one row and most importantly the drop down list in tact so the user can change the state.

    First File: 1 Joe Bob San Francisco CA 11122
    SecondFile:2 Smith Joe NY NY 11232
    ThirdFile:3 Stan Theman Mesa AZ 22334

    Thanks for your time everyone.

    Elias
    Attached Files Attached Files

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

    Re: Excel sheet - Create multiple files from rows

    I can't see much purpose in this. How do you intend naming the files, maybe JoeBob.xlsx?

    What data do you want in the new workbook?
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-02-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Excel sheet - Create multiple files from rows

    Quote Originally Posted by royUK View Post
    I can't see much purpose in this. How do you intend naming the files, maybe JoeBob.xlsx?

    What data do you want in the new workbook?
    The need is to be able to separate each row into one file for each client we have.

    Naming of the files is not really important... possibly by name of member?

    LastName_FirstName...

  4. #4
    Registered User
    Join Date
    05-02-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Excel sheet - Create multiple files from rows

    New datasheet has the rows + the drop down function if possible.

    Thanks so much for your help.

  5. #5
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Mexico
    Posts
    200

    Re: Excel sheet - Create multiple files from rows


  6. #6
    Registered User
    Join Date
    05-02-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Excel sheet - Create multiple files from rows

    Quote Originally Posted by Armando Montes View Post
    Hi

    Thanks for your help.

    each row is unique i need a file for each one with the drop down list intact with all values for lookup on each new file.

    This is very complicated i bet.

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

    Re: Excel sheet - Create multiple files from rows

    This code will create a workbook for each Row. However to maintain the Data Validation you need to type the list in the Source Box, like this CA,AZ,NY,NE, or also copy the Sheet with the list in.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-09-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Excel sheet - Create multiple files from rows

    This VBA code is working for my spreadsheet, but only creating new files for my first three rows. How would I alter this code to create new files for all of my rows (268)? Thanks.

  9. #9
    Registered User
    Join Date
    09-09-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Excel sheet - Create multiple files from rows

    Quote Originally Posted by royUK View Post
    This code will create a workbook for each Row. However to maintain the Data Validation you need to type the list in the Source Box, like this CA,AZ,NY,NE, or also copy the Sheet with the list in.

    Please Login or Register  to view this content.
    This VBA code is working for my spreadsheet, but only creating new files for my first three rows. How would I alter this code to create new files for all of my rows (268)? Thanks.

  10. #10
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Excel sheet - Create multiple files from rows

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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