+ Reply to Thread
Results 1 to 9 of 9

exporting userform data to document

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    exporting userform data to document

    i'm fairly new to VB and i've never used it in Word, only Excel.

    i've created a couple of userforms for users to automate the generation of a report for a client.

    question is how do i reference something in a document so the code knows where to enter the data.

    previously in excel, it's easy enough to reference a cell, not sure how you do this in word.

    if you could show me an example, i'd be very grateful

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: exporting userform data to document

    In Word you can use bookmarks.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: exporting userform data to document

    do you have an example of bookmarks in action?

    in your experience do you think is the best method for report writing. these reports are maybe 80% the same each time, but there are portions that need to be inputted, obviously client name and age for example.

    a second option (other than userforms) would be to lock the document and have text box's that the user can tab to, i think this could be a fairly quick alternative to userforms.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: exporting userform data to document

    Word documents have FormFields designed exactly for this. Basically inline text areas.

    http://www.dailydoseofexcel.com/arch...tomating-word/

    http://word.mvps.org/FAQs/TblsFldsFms/index.htm

  5. #5
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: exporting userform data to document

    are you talking about the 'controls' options in the developer tab?

    i can't see form fields per se, but i think these are the same things (in Office 07)

    looks like this is the way forward.

    are there form fields (or something similar) for creating tables? the only bespoke feature is that we will have a couple of tables that can vary in size.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: exporting userform data to document

    Yes, in wd2000, on the developer tab, In the controls group.
    Either the new controls or the legacy ones.

    Once set up you can protect the document so only formfields can be accessed.

    Probably not a whole table in 1 go though.

  7. #7
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: exporting userform data to document

    not sure how i'm going to arrange the tables. is there anyway to unprotect just tables or objects?

    thanks for the help!

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: exporting userform data to document

    I don't use or know Word well enough to tell you. Others maybe able to offer advice.

    You may find it will help those trying to help you if you posted an example of what you are trying do to.

  9. #9
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: exporting userform data to document

    if there are any Word specialists that can help with the above, i'd be very grateful.

    i'm also looking into the possibility of using ask and if fields?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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