Move data from a table in Word to Excel?

J

James

Hi: Everyboday

I hava a lot of Word document files with same talbe format. (Each file has
one product information, the are saved in table in Word file).

Now, do you think I can export those data from the tables to Excel file (Or
Access table), if I do it manually, it will take me ages!

Thanks.

James
 
W

Word Heretic

G'day "James" <[email protected]>,

The copy part is easy enough. The rest is out of scope for this NG.
Ask in an Excel group with this as a start.


Public Sub TablesToWorkSheets()
Dim Chair as Table

'Insert code here to create a new workbook
'from a non-Excel VBA app

For each Chair in ActiveDocument.Tables
Chair.Range.Copy

'Insert code here to paste into a new worksheet

Next

Set Chair = Nothing
End Sub


Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


James reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top