Exporting Word Form Data to Excel

In this video, Neil Malek demonstrates using an Excel macro to get data from multiple Word forms in a folder.
Macro development by the estimable Paul Edstein - mvp.microsoft.com/en-us/Publi...

Пікірлер: 94

  • @Marcmenardtechno
    @Marcmenardtechno7 жыл бұрын

    Thanks Neil, this bit of code works very well!

  • @squeekybean89
    @squeekybean896 жыл бұрын

    Really helpful! Thanks Neil!

  • @vishakhabhuibhar9508

    @vishakhabhuibhar9508

    6 жыл бұрын

    hey did you find the code?

  • @pierrickdefossez3157
    @pierrickdefossez31572 жыл бұрын

    Great video Neil, thanks. How do you deal with check boxes and radio buttons though?

  • @baileyleppek
    @baileyleppek4 жыл бұрын

    This is so cool. Thank you kind stranger!

  • @thekingsman8784

    @thekingsman8784

    3 жыл бұрын

    kzread.info/dron/y1BPfbGIoP6Bei7feTB7zA.html Open this link and increase your computer knowledge

  • @masson426
    @masson4265 жыл бұрын

    hi Neil, great video, how about in case I have multiple form in same word document? as I want to write them in excel in new line each. your help will be appreciated.

  • @Threedeeh1
    @Threedeeh17 жыл бұрын

    will this work even if I used legacy form fields instead of plain text content control?

  • @11111111111111169976
    @111111111111111699767 жыл бұрын

    is there away to use the graph on ms word and extract data on to excel?

  • @bapimazhar1166
    @bapimazhar11665 жыл бұрын

    Hi Mike, How can I download VBA code for this macro? Thanks.

  • @paolosellan9445
    @paolosellan9445 Жыл бұрын

    Hi Neil, I loved your video because your explanations are straight to the point and easy to understand even for non-power users. I need to find a way to import several resumes into a one Excel worksheet. The problem is that each resume is formatted differently. Is it possible to write a memo that looks for specific words (let's say "Education", "Skills", "Experience", etc.) and get related data? Can a macro recognize the name of a particular resume and put it under a field called "name"? Thank you.

  • @iKrromz
    @iKrromz7 жыл бұрын

    Thank you Sir!!

  • @yesayawandy
    @yesayawandy5 жыл бұрын

    Hi mr neil, i have a case like this but they are reverse from this case And then print in word paragraphs like a template Please help thanks...

  • @fbruni
    @fbruni8 жыл бұрын

    How cam i export from word doc metadata, using your macro?

  • @markddelorme
    @markddelorme8 жыл бұрын

    Where can I find this VBA code to copy/paste into my workbook? I tried the links provided in Paul Edstein's comments, although these aren't exactly the same as the one your using in the video and I'm getting compile errors. Thanks!

  • @francisprice762
    @francisprice7625 жыл бұрын

    Hi Neil Where can I obtain a copy of VBA macro code for this example.

  • @jdortiz86
    @jdortiz865 жыл бұрын

    What about the sub get form data section of the code?

  • @BigDaddyPoof
    @BigDaddyPoof5 жыл бұрын

    Can you provide a link to the video showing how to create the word form that goes with this excel sheet? I came came across this video first, not the one that shows how to create the word form.

  • @elenitacere
    @elenitacere6 жыл бұрын

    My question is: Form fields only are for 90 characters and the text that I want to transfer is usually bigger. What can I do?

  • @chuckallaire566
    @chuckallaire5666 жыл бұрын

    Wheres the Macro Download link

  • @manideepak6820
    @manideepak68203 жыл бұрын

    Hi sir I need dump the data from a single ms word which contains several pages of data feilds into a excel spreadsheet Do you have any macro or an idea to do my work easily

  • @robinleroy1373
    @robinleroy13734 жыл бұрын

    How do I get as copy of the VBA Macro?

  • @8929199
    @89291994 жыл бұрын

    Dear Neil, what is the status of repeatitive forms fields ( like kids ) ?

  • @sathishjay8405
    @sathishjay84053 жыл бұрын

    Thank you. Here in my word data contain Heading 1 ,heading 2, heading 3 etc. From like this i wanna export to excel those headings are set in separate vice like heading 1 first columns heading 2 secomd column and heading 3 third column again second heading 1 second row first column as well heading 2 secomd column like this heirarchy i want know extract data to excel......is there any way to do in automation.please could you assist.

  • @carltonseymour869
    @carltonseymour8698 жыл бұрын

    Hi Mike is it possible to download the VBA code. Thank You

  • @kingpinsascha
    @kingpinsascha5 жыл бұрын

    Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose a folder", 0) " Can you tell me which task the last sign has (quotation marks)? I deleted ist due to compiling reasons. thanks

  • @pradeepchauhan3085
    @pradeepchauhan30854 жыл бұрын

    Hi Neil, how can i get this work to excel export notepad file.

  • @ritaa.510
    @ritaa.5107 жыл бұрын

    I get stopped when exiting out of VBA with a message that the highlighted line "Sub GetFormData ( )" will stop the debugger....suggestions? Thanks!

  • @pradeepchauhan3085

    @pradeepchauhan3085

    4 жыл бұрын

    will you please sent me a script code of this word form data to excel. my email id ayush.kumar916@gmail.com

  • @kristensagnes2594
    @kristensagnes25942 жыл бұрын

    I was able to get this to work but now that I've put a few in there, when I import now it is copying over previous ones instead of adding new ones. Any ideas how to fix?

  • @lauraashleyfiddle
    @lauraashleyfiddle6 жыл бұрын

    Where do I get the code to cut and paste? Thanks! Also, I only have one word .doc so do I have to do Macros in order to import data from .doc to .xls?

  • @lauraashleyfiddle

    @lauraashleyfiddle

    6 жыл бұрын

    Also it would be nice to see what the .docs you have in your folder look like prior to import.

  • @adnanmahmud8691
    @adnanmahmud86912 жыл бұрын

    Where is the code file? Can't find it on the link shared at the description.

  • @oneiloneil1970
    @oneiloneil19705 жыл бұрын

    How to transfer info from 1 document field into another doc fields....

  • @ssorensonaz
    @ssorensonaz7 жыл бұрын

    How do you change this macro to refer to bookmarks, instead of content controls? I have a ton of older word forms I need to mine for data, and this macro won't read them...because they were all created prior to content controls. In fact, some of the fields have the same bookmark name as each other. I just need to dump out all the data in hundreds of files into excel.

  • @Tomas-eb7qj

    @Tomas-eb7qj

    6 жыл бұрын

    me too

  • @dorito818
    @dorito8182 жыл бұрын

    What if there are checkbox selections?

  • @eliot587
    @eliot5878 жыл бұрын

    Neil, I'm stuck. How does the excel macro recognize your word macro form field data and know which column to place the data? The issue I'm having with this excel macro is that my code doesn't recognize the Word Object Model despite toggling the reference to the Word 14.0 Object Model Library. What can I do to get around the issue I'm having? What can I do to fix my .xlsm and docm, so that my data will be collected from the form fields and placed into my spreadsheet?

  • @lmt125

    @lmt125

    8 жыл бұрын

    I think you need to make sure all your field have the same name like text1, text2 in your docm haven't tried this myself yet.

  • @valeriebigeard362
    @valeriebigeard3624 жыл бұрын

    Hi Mr Neil, I do not find your notepas file with the whole script of the macro? It would be possible to get it please? Kind regards

  • @nadinekadri6701

    @nadinekadri6701

    3 жыл бұрын

    Hi Valerie, you can find the code online here: www.vbaexpress.com/forum/showthread.php?40406-Extracting-Word-form-Data-and-exporting-to-Excel-spreadsheet

  • @mightybluespider

    @mightybluespider

    3 жыл бұрын

    @@nadinekadri6701 "Compile error: Method or data member not found"

  • @jmrcardoso73
    @jmrcardoso734 жыл бұрын

    Any suggestion on how to do the opposite i.e I have an excel table and want to populate word forms with that? Thx

  • @theigneous

    @theigneous

    4 жыл бұрын

    look up Mail Merge

  • @hariraghava6745
    @hariraghava67457 жыл бұрын

    I have a word file but the details are not in a particular sequence as you have shown in the word file,, it's a 20+ page file and I need some 60 fields from the word form.. I tried your coding with little changes but it didn't work can you please guide me how to do this..

  • @subbavenkiteswaran4433

    @subbavenkiteswaran4433

    2 жыл бұрын

    I am in a similar situation, did you find a solution for your problem ?

  • @jdortiz86
    @jdortiz865 жыл бұрын

    Hey Neil this was great! Where can I find the code you used? Also what video do you go over making changes to a word doc to fit what you need to populate an excel file?

  • @colinm5120

    @colinm5120

    5 жыл бұрын

    His VBA code is on Forum post here: www.vbaexpress.com/forum/showthread.php?40406-Extracting-Word-form-Data-and-exporting-to-Excel-spreadsheet&p=257696&viewfull=1#post257696

  • @phmaktx3343

    @phmaktx3343

    4 жыл бұрын

    @@colinm5120 so this link seems to be dead. Any suggestions where else I can get the macro code? thx!!

  • @vilsaflasche
    @vilsaflasche7 жыл бұрын

    hi Neil, great explaining. it is easy to follow. however, i have been trying to do this on a Mac but it doesn't run. do you have an idea why? thanks

  • @daxtonlukas8892

    @daxtonlukas8892

    2 жыл бұрын

    you all prolly dont care at all but does any of you know a tool to get back into an instagram account? I was stupid forgot my login password. I appreciate any help you can offer me.

  • @bradleycharles9108

    @bradleycharles9108

    2 жыл бұрын

    @Daxton Lukas instablaster ;)

  • @daxtonlukas8892

    @daxtonlukas8892

    2 жыл бұрын

    @Bradley Charles i really appreciate your reply. I got to the site on google and im trying it out atm. Takes quite some time so I will get back to you later when my account password hopefully is recovered.

  • @daxtonlukas8892

    @daxtonlukas8892

    2 жыл бұрын

    @Bradley Charles It did the trick and I finally got access to my account again. Im so happy:D Thanks so much, you really help me out !

  • @bradleycharles9108

    @bradleycharles9108

    2 жыл бұрын

    @Daxton Lukas you are welcome :)

  • @jdortiz86
    @jdortiz865 жыл бұрын

    Word object model?

  • @mgunter9929
    @mgunter99295 жыл бұрын

    where is the Word to excel export file referenced as a download for this video?

  • @colinm5120

    @colinm5120

    5 жыл бұрын

    His VBA code is on Forum post here: www.vbaexpress.com/forum/showthread.php?40406-Extracting-Word-form-Data-and-exporting-to-Excel-spreadsheet&p=257696&viewfull=1#post257696

  • @DSTGotchaGood
    @DSTGotchaGood7 жыл бұрын

    You didn't come back and explain what we have to do with "'Note: this code requires a reference to the Word object model" ?

  • @raprein3

    @raprein3

    6 жыл бұрын

    In the Visual basics screen go to the top bar and click Tools>References. Then simply scroll the list and tick the boxes of ALL the items with the words Object Model in it (preferably search for Windows Object model or Word Object model and also tag all Object libraries. I don't know exactly which one made it actually work, but after clicking them all it worked perfectly! Good luck!

  • @prabhupatra

    @prabhupatra

    4 жыл бұрын

    @@raprein3 Is there any other way to deal with the same error message; because References is disabled on my work laptop on which I need to execute this code.

  • @ShankarKumar-zo1fb
    @ShankarKumar-zo1fb4 жыл бұрын

    I am getting compile error "Can't Find Project or Library" high lighting "wdApp As New Word.Application"

  • @bayonictx8305

    @bayonictx8305

    4 жыл бұрын

    you figured it out?

  • @fireball60004

    @fireball60004

    4 жыл бұрын

    You need to 'enable' (excuse any misunderstanding there please!) the reference to the Word object from within the VBA window following Tools > References > Microsoft Word Object Library

  • @bartleybonar5724
    @bartleybonar57246 жыл бұрын

    did anyone figure out the references

  • @linotaffoni2820
    @linotaffoni28204 жыл бұрын

    hi...where is the macro code?

  • @aboyoussef4026
    @aboyoussef40263 жыл бұрын

    Thank you very much sir, could you please give me this excel file?

  • @1truebloodlove
    @1truebloodlove5 жыл бұрын

    Where is the downloadable macro?

  • @siebertpj

    @siebertpj

    5 жыл бұрын

    Found this online- links4reference.yolasite.com/resources/Step%20to%20create%20macro%20(VBA%20for%20Word%20form%20fields%20to%20Excel).pdf

  • @wiremylights
    @wiremylights7 жыл бұрын

    Can anybody help me??? I have address and phone numbers in word 209 pages. I want to export from word to excel (open office) in name, address, state, email, website and telephone number. It has been a pain. can anyone help. tried comma's, saving as plain text etc nothing works. the data is still all over the place.

  • @neilmalek

    @neilmalek

    7 жыл бұрын

    I really don't know what's happening under the hood with Open Office, so if everything's breaking, I'd be doing the same Googling you are! Sorry I can't be of more assistance.

  • @TheZedraCula
    @TheZedraCula6 жыл бұрын

    Hi, Maybe i'm blind but where is the download for the macro?

  • @kirannikam2500

    @kirannikam2500

    6 жыл бұрын

    Hi Johan, were u successful in running the macro

  • @katytillman6004

    @katytillman6004

    6 жыл бұрын

    Did you find the download for the macro?

  • @tele5050
    @tele50507 жыл бұрын

    Hi Malek, its wonderful demo. However I am having some issue in populating my excel sheet. I have email you the files. Appreciate if you help to resolve. Thanks a lot.

  • @MsMRBEER
    @MsMRBEER Жыл бұрын

    Neil please provide VBA code. This looks exactly like what I need.

  • @kingpinsascha
    @kingpinsascha5 жыл бұрын

    Hey Neil, "Object doesn't support property or method" afterwards I get "excel is waiting for an ole action from another application" Should I deactivate or activate sth in Word?

  • @mastrockys

    @mastrockys

    4 жыл бұрын

    Hi, Did you get a response to this / moved ahead from here? I am stuck at the same place!

  • @dawarner6302
    @dawarner63025 жыл бұрын

    Neil... it has been a couple of years since you created this video... by chance, is the MACRO text file still available? I would like to use it if possible

  • @colinm5120

    @colinm5120

    5 жыл бұрын

    His VBA code is on Forum post here: www.vbaexpress.com/forum/showthread.php?40406-Extracting-Word-form-Data-and-exporting-to-Excel-spreadsheet&p=257696&viewfull=1#post257696

  • @bayonictx8305

    @bayonictx8305

    4 жыл бұрын

    @@colinm5120 I get error :( Compile error: User- defined type not defined what references i should use?

  • @bayonictx8305

    @bayonictx8305

    4 жыл бұрын

    @@colinm5120 please help :'(

  • @WadeBarmby
    @WadeBarmby5 жыл бұрын

    This is a great video, but it would actually be useful if there were downloads to the files and the VB code he's talking about. Hard to copy and paste from a video. If anyone has them, it would be very much appreciated.

  • @colinm5120

    @colinm5120

    5 жыл бұрын

    His VBA code is on Forum post here: www.vbaexpress.com/forum/showthread.php?40406-Extracting-Word-form-Data-and-exporting-to-Excel-spreadsheet&p=257696&viewfull=1#post257696

  • @Ewan-Argo
    @Ewan-Argo6 жыл бұрын

    so, wheres the code?

  • @SophiaKMarques

    @SophiaKMarques

    6 жыл бұрын

    www.vbaexpress.com/forum/showthread.php?40406-Extracting-Word-form-Data-and-exporting-to-Excel-spreadsheet&p=257696&viewfull=1#post257696 Found it on his blog

  • @ociekhan317

    @ociekhan317

    8 ай бұрын

    Did you ever get the file?

  • @fullmetalsvr
    @fullmetalsvr5 жыл бұрын

    People you can do this, they just don't know how... pointless to show and not give the examples to download...

  • @vicentemoll3618
    @vicentemoll36184 ай бұрын

    Sub GetFormData() ' Note: this code requires a reference to the Word object model Application.ScreenUpdating = False Dim wdApp As New Word.Application Dim wdDoc As Word.Document Dim FmFld As Word.FormField Dim strFolder As String, strFile As String Dim WkSht As Worksheet, i As Long, j As Long strFolder = GetFolder If strFolder = "" Then Exit Sub Set WkSht = ActiveSheet i = WkSht.Cells(WkSht.Rows.Count, 1).End(xlUp).Row ' on this line, notice that the file extension is .docm. ' if you are using .doc files or .docx files, make sure ' you change this line to match up with that. ' strFile = Dir(strFolder & "\*.docm", vbNormal) While strFile "" i = i + 1 Set wdDoc = wdApp.Documents.Open(Filename:=strFolder & "\" & strFile, _ AddToRecentFiles:=False, Visible:=False) With wdDoc j = 0 For Each FmFld In .FormFields j = j + 1 WkSht.Cells(i, j) = FmFld.Result Next FmFld End With wdDoc.Close SaveChanges:=False strFile = Dir() Wend wdApp.Quit Application.ScreenUpdating = True End Sub Function GetFolder() As String Dim oFolder As Object GetFolder = "" Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose the folder", 0) If (Not oFolder Is Nothing) Then GetFolder = oFolder.Items.Item.path Set oFolder = Nothing End Function 'If you decide to use Content Controls instead of Form Fields '(which are found under the Developer Ribbon), you'll need to find every instance 'of FmFld and replace it with CntCtrl. ' Dim CntCtrl As Word.ContentControl 'For Each FmFld In .FormFields changes to For Each CntCtrl In .ContentControls 'WkSht.Cells(i, j) = FmFld.Result changes to WkSht.Cells(i, j) = CntCtrl.Range.Text

  • @c3235086
    @c3235086 Жыл бұрын

    Worse than useless without the macro file, which is not provided.