+ Reply to Thread
Results 1 to 5 of 5

Import multiple word docs into excel

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Southern California
    MS-Off Ver
    Excel 2013
    Posts
    4

    Question Import multiple word docs into excel

    Hello Excelforum!
    New member here and after searching all over the net for a solution I believe I may find my answer within this community. I hope I'm posting in the right section because I believe I need a macro to solve my dilemma (maybe not im not sure).

    I need to import a long list of word docs into one excel sheet.
    I think my situation is unique in that I need the word document title in column A and the data inside the word document in column B through D.
    Also each document needs to be in its own row as well so we can organize it later.

    Please let me know if anyone needs any additional info.
    Thank you for the help!!!

  2. #2
    Registered User
    Join Date
    05-07-2014
    Location
    Southern California
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Import multiple word docs into excel

    All the data in the word docs are uniform, 3 small lines of text all separated by a row.

    ex:
    "patient name"

    "patient d.o.b."

    "patient gender"


    *edit*
    Or even without the document title, just the 3 lines of data within the .docx will do.
    Also I am using Excel 2013
    Last edited by Dubtank; 05-12-2014 at 06:16 PM.

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Southern California
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Import multiple word docs into excel

    So I figured out how to convert all my .docx files to .txt files using this code in word:

    Please Login or Register  to view this content.
    Which is only half of my issue... I need to figure out how to properly format these text files into excel correctly. I have seen many different methods of how to import all these but none have the data formatted specifically to my needs... This is where I truly need help. I have not double posted this question ANYWHERE ELSE!

    What I have:
    About a thousand .txt files with 3 lines of data separated by a blank row that looks like this:
    "name"

    "D.O.B."

    "gender"


    What I need:
    Each .txt file to be imported to it's own row (one row per file) and then each line of text separated by column.
    So one row and three columns per text file.
    The name of the files don't matter only the text data within and they are all in the same file location
    Last edited by Dubtank; 05-12-2014 at 08:28 PM.

  4. #4
    Registered User
    Join Date
    05-07-2014
    Location
    Southern California
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Import multiple word docs into excel

    So I FIIIIIINALLY figured out a simple program that will read all my TXT files and import to excel to almost the format that I need... almost...

    Please Login or Register  to view this content.
    Still not in the right format. And still no reply...
    Does anyone still read these forums or is it just a long forgotten archive of old inquiries?

    Im hoping that the reason no one has replied is because I have not been thorough enough of explaining what I need (hmm).
    So in hopes to that, I am attaching a workbook.
    Sheet 1 has what I get with the code above.
    Sheet 2 has the format that I need the data to be organized as when I import all my text files.

    Please guys, I have not asked anywhere else because that's your rule... I'm Hoping to get an answer soon but I cant wait forever. Time is about up and I will have to start posting my question somewhere else if I cant get any help here.
    Attached Files Attached Files
    Last edited by Dubtank; 05-14-2014 at 07:28 PM.

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Import multiple word docs into excel

    I'm not sure how you are looping through the files, but this will ask you to find a file and will split the file the way you want and then ask for another file. I suspect that you're situation will use a different loop. It will work with .txt, .doc, .docx and .docm files, as well as others.
    Note that Word must be closed when you start this.

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copying data from multiple word docs into one excel sheet
    By X82 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2013, 07:24 AM
  2. Create Multiple Word Docs from Excel Data
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-06-2011, 12:55 PM
  3. Import cells from excel into word and create multiple word docs
    By scdaddy7269 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2006, 03:03 PM
  4. [SOLVED] Embedding Word Docs into Excel Worksheets and Then Printing The Word Docs
    By mr_melvis in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2005, 10:06 PM
  5. converting excel docs to word docs
    By rolercster in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-04-2005, 04:06 PM

Tags for this Thread

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