+ Reply to Thread
Results 1 to 8 of 8

extracting data

  1. #1
    Registered User
    Join Date
    07-03-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    extracting data

    Hi, I have over 800 members details in an excel file with name, address etc is there a way to extract each members details out and place them into a folder? so at the end of it I will have 800 folders with each members details in each folder. I'm using Excel 2003, Thank you for your time.

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: extracting data

    Hi skillfilluk;

    How are the members details arranged in Excel? Is all the data for 1 member in 1 row? Or maybe 1 sheet? Or how?

    Excel can create a files in the folder, but what kind of files? Text files? Excel files with one sheet? Or What?

    In all likely hood the answer is yes, but I would want to know more details than what you have given.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  3. #3
    Registered User
    Join Date
    07-03-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: extracting data

    All the data for 1 member in on 1 row, and I want them extracted to text files in each folder. Thanks for your help.

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: extracting data

    Do you know how to write a macro?

  5. #5
    Registered User
    Join Date
    07-03-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: extracting data

    No sorry never used macro, but I guess I can give it a go?

  6. #6
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: extracting data

    Well, you have picked a rather ambitious task to start writing macros on.
    I'll write a basic one for you, but you will have to provide a sample workbook. Copy your workbook with the names, but take out any sensitive data. I just need to see how everything is arranged. Then upload it to the forum.

    I'll look at it, and write a macro to get you started (maybe it will be everything you want). It's late for me, so I'll be back in a few hours, to look at it.

  7. #7
    Registered User
    Join Date
    07-03-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: extracting data

    Workbook example attached, would it be possible so when data is extracted the folders created are named with the members name (first and last name) thanks again.
    Attached Files Attached Files
    Last edited by skillfilluk; 07-04-2010 at 06:38 AM.

  8. #8
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: extracting data

    Hi skillfilluk;

    First off, I'm not going to do the whole thing for you. At least not unless you want to pay me for my time. You will be doing a lot of the work. I'm going to be primarily teaching you how to do it yourself. I'm doing this for free because I've never done it before, and I'm interested in the challenge.

    If that's OK with you, then let's get started.

    Step 1) Open the VBE (Visual Basic Editor)
    in your workbook, click Alt+F11. That opens the editor where you will write macros. Make sure that the window that opens has the name of your workbook at the top. It should say something like this "MyWorkbook.xls - Sheet1 (Code)"

    Click Ctrl+R to open the Project Explorer
    the highlighted line shows you where the 1st window is in relation to your whole workbook. Above the highlighted line you will see your workbook name like this "VBAProject(myWorkbook.xls)"

    In the menus click Insert->Module.
    This will create another module in your project named "Module 1". This is where you will write your macro.

    Now cut & paste every thing that is in this code window into Module 1. Then put your cursor inside the macro (somewhere between the line "Sub myMacro()" and "End Sub") and click F8 (that will start the macro). Then just read what is there, it should be easier to read and I will be able to demonstrate things that I can't do here. This is just an extremely simple first step, just to see if either one of us is wasting his/her time.

    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