+ Reply to Thread
Results 1 to 3 of 3

Office 2010: Transfer Form Content Control Data into Excel Database - Macro Help

  1. #1
    Registered User
    Join Date
    10-21-2016
    Location
    Canada
    MS-Off Ver
    MS Office 2010
    Posts
    8

    Office 2010: Transfer Form Content Control Data into Excel Database - Macro Help

    Hello,

    I am trying to find a macro that will copy data entered into form fields in a word document and into an excel database. I have seen other macros which take all forms in a folder and populate a database, but since this database will be used over time I would prefer that I can have word forms populated into the database as they come in (instead of as one bulk action).

    The main issue I am running across is that I am using command controls to create text fields, date fields and checkboxes. The other macros I have seen copy the form fields directly into excel, importing an actual checkbox "character" into my excel instead of just a value that I can actually use in excel (i.e. 1,0 or Y,N).

    Therefore I would like help creating a macro that can:
    -Identify a specific file (or active word sheet) and copy filled in word content controls into excel
    -Paste the data into a new row in excel
    -Make sure that the checkboxes are copied as values (ideally 0,1) instead of as actual textbox symbols

    I have attached a copy of a sample form. I cannot create the form in excel because the people I am sending it to won't want to fill out a form in excel (they prefer word).

    Thank you very much
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Office 2010: Transfer Form Content Control Data into Excel Database - Macro Help

    Hi Maredon2016

    Welcome to the Forum!!!

    From your description the inference is that you have an existing Excel File that will receive these Word Documents. The further inference is that you have some Code with which to make the transfer of this Data.

    Please show us both so we don't need to recreate what you've already done.

    To attach the Excel File Click on Go Advanced then scroll down to Manage Attachments. Please be sure to wrap any Code you post in Code Tags.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    10-21-2016
    Location
    Canada
    MS-Off Ver
    MS Office 2010
    Posts
    8

    Re: Office 2010: Transfer Form Content Control Data into Excel Database - Macro Help

    Hello,

    Sorry for the delay, I have been away from the computer for the past couple days.

    I do not have an excel document because I have simply been trying a bunch of things, failing and then restarting with a blank excel.

    The best macro I have been able to find so far is the following:

    Please Login or Register  to view this content.
    The issue with the code above is it opens up and imports all the data for a folder (instead I would like to select specific files) and when you make a checkbox content control (see the Word doc attached), it copies over the checkbox symbol instead of a 1/0 or True/False value.

    If I could modify the code to fix those two issues it would be perfect.

    Thank you

+ 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. [SOLVED] Hide a combo box (form control), based on a cell value - Excel 2010
    By jaymudda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2015, 12:20 PM
  2. transfer data into form excel 2010, multiple rows cells
    By deekar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2014, 06:08 PM
  3. [SOLVED]Excel 2010 Passing form control as parameter fails
    By tfurnivall in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2014, 01:03 AM
  4. Macros linked to entries in list box (form control) Excel 2010
    By zubair57 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2013, 07:50 AM
  5. Workbook VBA Project Reference will not migrate form Office 2010 to Office 2002
    By DAve Bradbury in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 07:43 AM
  6. Replies: 0
    Last Post: 04-01-2013, 12:50 PM
  7. How do I remove a shadow from a Form Control Button in Excel 2010
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2011, 02:38 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