![]() |
|
#1
|
|||
|
|||
![]()
Hey guys,
Was just wondering if there was a neat way to take data entered into a word document and extract it into excel or something similar? The data I want would all be from text fields/checkboxes/date pickers and such. |
#2
|
|||
|
|||
![]()
Hi,
Yes you can do this. Firstly you need to export the completed form as a TXT file but first you need to go into File > Options. Select the Advanced section and scroll down till you see the Preserve Fidelity when sharing this document section. Tick the box for Save form data as delimited text file then click OK. Open a copy of the completed form in Word. Select Save As and choose the file format as .txt. Now open Excel and select the Data tab and click the From Text button within the Get External Data group. Locate the TXT file you just saved, click Import, go through the Text Import Wizard and select Delimited as the file type, select the comma option as the delimiter you are using and complete the wizard and the data will be bought straight into Excel. You just repeat for each completed form. Once you are finished the process and no longer need forms to save the data only I'd untick the option in the File > Options in Word. There may be a slight difference in the sequence in Word 2013 but the option is certainly available as I'm using 2010 at present. |
#3
|
||||
|
||||
![]()
If you have multiple documents to process, it's probably best to do the data extraction from Excel. For a macro to do this with content controls, see:
http://www.vbaexpress.com/forum/show...l=1#post257696 and, for modifications to that code for working with formfields, see: http://www.vbaexpress.com/forum/show...l=1#post291047
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
fraserb | Word | 2 | 09-01-2014 10:56 PM |
From Excel to Word? | lostsoul62 | Word | 1 | 03-19-2012 06:20 PM |
![]() |
Joe Patrick | Word VBA | 2 | 01-30-2012 07:23 AM |
![]() |
rynman | Office | 5 | 04-19-2009 06:50 AM |
![]() |
retrospect1984 | Excel | 1 | 02-18-2009 06:41 AM |