Closed Thread
Results 1 to 3 of 3

excel copy cells to word template

  1. #1
    Garr
    Guest

    excel copy cells to word template

    I have a large workbook and I want to copy cells from one sheet called
    Menu to a specific word template called PDC_MCC_IR.dot and save the
    word template as a word document. I have a bit of code that can open a
    word document and past information from cells in the word document but
    I need help for the rest. Can anyone help me. Here is the code that I
    already have.

    Sub Excel_to_Word()
    Dim appWord As Word.Application


    Set appWord = New Word.Application


    appWord.Visible = True


    Range("b4:c10").Copy


    appWord.Documents.Add.Content.Paste


    Application.CutCopyMode = False


    End Sub


    Thanks Garry gtpig...@shaw.ca


  2. #2
    pdberger
    Guest

    RE: excel copy cells to word template

    Garr --

    I think it would be easier to have Word 'pull' the data in rather than Excel
    'push' it. No VBA, etc. Here's a page on how to do it.

    http://office.microsoft.com/en-us/as...880611033.aspx

    "Garr" wrote:

    > I have a large workbook and I want to copy cells from one sheet called
    > Menu to a specific word template called PDC_MCC_IR.dot and save the
    > word template as a word document. I have a bit of code that can open a
    > word document and past information from cells in the word document but
    > I need help for the rest. Can anyone help me. Here is the code that I
    > already have.
    >
    > Sub Excel_to_Word()
    > Dim appWord As Word.Application
    >
    >
    > Set appWord = New Word.Application
    >
    >
    > appWord.Visible = True
    >
    >
    > Range("b4:c10").Copy
    >
    >
    > appWord.Documents.Add.Content.Paste
    >
    >
    > Application.CutCopyMode = False
    >
    >
    > End Sub
    >
    >
    > Thanks Garry gtpig...@shaw.ca
    >
    >


  3. #3
    Garr
    Guest

    Re: excel copy cells to word template

    Thanks I found a way around that uses two macro's

    pdberger wrote:
    > Garr --
    >
    > I think it would be easier to have Word 'pull' the data in rather than Excel
    > 'push' it. No VBA, etc. Here's a page on how to do it.
    >
    > http://office.microsoft.com/en-us/as...880611033.aspx
    >
    > "Garr" wrote:
    >
    > > I have a large workbook and I want to copy cells from one sheet called
    > > Menu to a specific word template called PDC_MCC_IR.dot and save the
    > > word template as a word document. I have a bit of code that can open a
    > > word document and past information from cells in the word document but
    > > I need help for the rest. Can anyone help me. Here is the code that I
    > > already have.
    > >
    > > Sub Excel_to_Word()
    > > Dim appWord As Word.Application
    > >
    > >
    > > Set appWord = New Word.Application
    > >
    > >
    > > appWord.Visible = True
    > >
    > >
    > > Range("b4:c10").Copy
    > >
    > >
    > > appWord.Documents.Add.Content.Paste
    > >
    > >
    > > Application.CutCopyMode = False
    > >
    > >
    > > End Sub
    > >
    > >
    > > Thanks Garry gtpig...@shaw.ca
    > >
    > >



Closed 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