Results 1 to 3 of 3

Thread: (word) Mac 2010, importing data from (excel) into my document.

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    7

    (word) Mac 2010, importing data from (excel) into my document.

    Hello People.

    I am trying to automate my quotation process for my business, and because it's a new business and I haven't got any money I have got to do it all myself, or at least with your help if you can.

    I have a document that is a quote and I have saved in RED throughout my document stuff that needs to be inserted.

    So Basically my quotation looks like this when finished.

    Quotation, for {xyz} company, we propose to change your lights for LED, your current lights are {insert current lights} etc throughout a 10 page document.

    Now all of this information is held within my workings spreadsheet so what I would like to do is have a "macro button" or something on the template of my document that imported the relevant cells from the spreadsheet that holds the data.

    I have tried and failed by using a Mail Merge to do it.

    So my ideal quote would read....

    Quotation, for {spreadsheet abc cell b2} company, we propose to change your lights for LED, your current lights are {spreadsheet abc cell b7} and we propose to change them for {spreadsheet abc cell 8c} which will save you {spreadsheet abc cell 9D} per year.

    Any idea how I can do this?

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: (word) Mac 2010, importing data from (excel) into my document.

    are these {info} just document text or word fields?
    you should be able to use word fields
    else you can use multiple find /replace within vba code to replace specified text strings
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    7

    Re: (word) Mac 2010, importing data from (excel) into my document.

    The {field} could be text, or numbers or whatever is in the excel spreadsheet.

    I want to add info from the spreadsheet to complete my quote. So they could be used like variables but dragged from the spreadsheet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width