+ Reply to Thread
Results 1 to 2 of 2

Copying data from multiple word docs into one excel sheet

  1. #1
    Forum Contributor
    Join Date
    08-23-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    128

    Question Copying data from multiple word docs into one excel sheet

    I have about 4000 doc and docx files which contain a table. I've managed to import these into one excel sheet using the following script:

    Please Login or Register  to view this content.
    The only issue is that outside the table of the docs is a date. Because this isn't in the table, it doesn't pick it up and I have a huge list of data with no dates. How can I get it to import ALL the data or at least, the date into the excel sheet also. Without dates the data I have could be in any order and useless to me.
    The document includes a top table, this contains information like revision number, page number, company name and date the form was made. All of which is not what I require. Beneath that is a line of text, the date and beneath that is the table which I want. The filenames also contain the date if that helps.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Copying data from multiple word docs into one excel sheet

    As you already appear to have the filename in your myFile variable, why not drop the value of the variable into an appropriate cell within your loop.
    Martin

+ 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. Replies: 1
    Last Post: 03-11-2013, 05:37 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. Extracting data from multiple word docs
    By momossy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2010, 05:14 AM
  4. 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
  5. [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

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