+ Reply to Thread
Results 1 to 3 of 3

How to transfer data from an excel user form to ms word under titles?

  1. #1
    Registered User
    Join Date
    12-15-2008
    Location
    in a mud hut
    Posts
    28

    How to transfer data from an excel user form to ms word under titles?

    What I have got is a word document and an excel document.

    The excel document is used to enable a userform which a person can fill out.

    The word document is used for the details of the user form in excel to be transferred to the word document.

    I have created the forms and the word template and i am looking for a way the following can be done when the "SAVE" button is clicked on the user form in excel.

    1) Have the details from the user form transferred into the word document at the top where the corresponding headers are.

    2) The word document file name automatically created(using the issue title in the user form) and inserted into the excel sheet under issues for it to be reopen and viewed in Microsoft word.

    I know it would be simpler to have all this in one form but the idea is to get someone to fill out the issue only then someone of higher authority can update the issue's progress but still allowing the issue creator( or any one else) the access to re-open it and see the updates in a read only format in word.

    complicated i know but that's how its got to be.

    attached are the word doc and the excel doc

    (See attached file: Issues Log new.doc)(See attached file: new sample issues log.xls)

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    One approach that you might try is to save your Word template with distinctive dummy items in XML format and then use a macro to replace the dummy items with the values collected on your user form.

    This way means that you can keep any fancy formats that you might have in the word document as these are encoded in XML tags.

    Reading in the XML file using the Line Input statement is a reasonably straightforward way of doing this.
    Martin

  3. #3
    Registered User
    Join Date
    12-29-2015
    Location
    NAGPUR
    MS-Off Ver
    2007
    Posts
    1

    Re: How to transfer data from an excel user form to ms word under titles?

    You can make your template in excel it will take some time but once you done it you can automatic print and save in pdf format also,

+ 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