+ Reply to Thread
Results 1 to 2 of 2

Excel database creates a Word document from a template based on excel data

  1. #1
    Forum Contributor
    Join Date
    02-26-2014
    Location
    Aylsham, Norfolk, UK
    MS-Off Ver
    Excel 365
    Posts
    126

    Excel database creates a Word document from a template based on excel data

    Hi All,

    I would like to create a Macro that I can attached to a button that will allow me to create a new Word document (.docx) from a template (.dotx), which will automatically enter to last detail of a cell in a column into a specified location of the word document.

    The idea is that the Excel document will hold a ledger of Quotes, from that document we can create a new quote (based on Word), with the Quote number already inserted.

    If it is too complicated to look at the last entry maybe we could create the quote based upon the information from the selected cell.

    Any assistance would be greatly appreciated, from my research so far I believe the this is nigh on impossible as a formula, however it should be relatively easy as a macro.

  2. #2
    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: Excel database creates a Word document from a template based on excel data

    If you use a named range in Excel, which you assign to whichever range you want to send to the Word document, this could all be done using OLE to link a word template to the Excel workbook. No code required, though you would need to break the link in the resulting Word document to stabilise the data.

    You could also do this from Word with a mailmerge, merging whichever Excel record you require. Again, no code required.

    You could use a macro to automate either approach.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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. Merging excel data into a word document template
    By Tatay16 in forum Word Formatting & General
    Replies: 3
    Last Post: 11-29-2016, 06:48 PM
  2. Excel tool to maintain database and generate word document through excel
    By ppganesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2015, 03:58 AM
  3. Send Data From Excel Userform to Microsoft Word Document Template
    By t0mps in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-09-2014, 03:18 PM
  4. Replies: 1
    Last Post: 01-18-2014, 09:32 PM
  5. Replies: 1
    Last Post: 10-10-2013, 10:53 AM
  6. [SOLVED] link excel data to word document template
    By Haz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-15-2006, 01:35 PM
  7. Replies: 1
    Last Post: 02-03-2006, 07:25 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