+ Reply to Thread
Results 1 to 7 of 7

Creating Word Doc from Excel

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Rancho Cucamonga, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Creating Word Doc from Excel

    Hi,
    I do calculations on a spreadsheet to determine home values. After I get the values, I need to translate them in to a Loan Approval document. I currently have a loan approval tab but it doesn't have all the formatting features I need that Word has. I usually copy and paste the information in the Loan Approval tab to an email. The email looks plain and boring despite what I use.

    My question is, how do I open up word and produce the text I need in the Loan Approval Tab and generate it with Bold and Blue color formatting for certain key numbers that is extracted from the excel sheet.

    see attached.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating Word Doc from Excel

    Hi

    Managed to get the export to word working
    however i do not know how to get the Word part working

    Ps i changed formatting of your loan approval sheet
    any empty Rows equate to a lot of tabs in word
    Attached Files Attached Files

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Creating Word Doc from Excel

    Assuming you want to have a different workbook for each client, to do this properly you should create a separate Word template with all of the boilerplate text and either bookmarks or custom document properties for the output from your Excel workbook. Automating Word to create a document from such a template and populate it is pretty straightforward and there's lots of code around showing how to do so.

    Alternatively, if you always use the same workbook, you could create a separate Word template (or document) with all of the boilerplate text and use LINK fields to import the data from Excel. Quite a simple process requiring no code at all unless you want to automate Word from Excel for this.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Registered User
    Join Date
    03-28-2013
    Location
    Rancho Cucamonga, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Creating Word Doc from Excel

    Are you basically saying, setup a mail merge with all the data I need into one row and then open a word doc to mail merge the fields I need? for 1 document?

    I guess I could. I can see that happening.

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Creating Word Doc from Excel

    No, not at all. I was referring to Word automation and/or OLE linking. Entirely different concepts from mailmerge.

  6. #6
    Registered User
    Join Date
    03-28-2013
    Location
    Rancho Cucamonga, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Creating Word Doc from Excel

    Ok thanks, I ended up just creating a mail merge template in word. I created another sheet in the excel file and cherry picked the fields I needed and put it in a row. I put the field names in row 1, and created a mail merge template in word and use that tool to pick up the fields I want in the excel spreadsheet. I'm not very familiar with OLE, but its a quick fix to get the job done when dead lines are tight. I'll be researching OLE to improve on it. The =TEXT(), for example =TEXT(A2, "$###,###,###") command was very important to put into the fields because you lose a lot of the number formatting when you mail merge into word.
    Last edited by thylow; 05-13-2013 at 11:15 AM.

  7. #7
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Creating Word Doc from Excel

    There are other ways of managing the formatting in a mailmerge context. One is to use the DDE data connection method; the more common method is to use field switches in Word to manage the formatting. The latter gives added flexibility, in that the one mailmerge field can be output in different formats in the document according to context.

+ 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