+ Reply to Thread
Results 1 to 2 of 2

Modifying Code to Extract All Data From Word Documents

  1. #1
    Registered User
    Join Date
    09-23-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Unhappy Modifying Code to Extract All Data From Word Documents

    All,

    I'm trying to modify some code that extracts the first table from each word document in a folder and places it into excel. What I would like to achieve is to have the macro extract all of the tables from each word document and place them into excel. The issue lies with the code specifying a single table (oDoc.Tables(1).Range.Cells) and I can't seem to figure out how to modify the code so that it will extract all of the tables in each word document (I've tried looping it another way, but I'm not very experienced with VBA).

    Any help would be greatly appreciated. Again, the code is perfect except for the fact that it only takes the first table from each document as opposed to all of the tables from each document.

    Code:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Modifying Code to Extract All Data From Word Documents

    I didn't test but it should work :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

+ 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. Need help with modifying the VBA code Extract data
    By honeybunny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2013, 09:10 PM
  2. [SOLVED] Code to print all word documents from a folder
    By Scal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2013, 04:44 PM
  3. Modifying code to change number to word
    By vishwajeet_chakraort in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2012, 04:32 AM
  4. Macro code to extract data from spreadsheet into 3 word documents
    By nurseydiamond in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2010, 08:13 PM
  5. Extract Data from a table in word documents
    By mmf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2008, 11:14 AM

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