PC Review


Reply
Thread Tools Rate Thread

excel copy cells to word template

 
 
Garr
Guest
Posts: n/a
 
      6th Aug 2006
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?cGRiZXJnZXI=?=
Guest
Posts: n/a
 
      7th Aug 2006
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
>
>

 
Reply With Quote
 
Garr
Guest
Posts: n/a
 
      8th Aug 2006
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
> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy excel cells to word without gridlines learning 2007 Microsoft Excel Misc 1 30th Oct 2009 05:43 PM
excel copy cells to word template gtpighin@shaw.ca Microsoft Excel Programming 0 5th Aug 2006 10:52 AM
How can I have Excel cells populate a Word label template? =?Utf-8?B?TVMgUXVlc3Rpb25uYWlyZXNz?= Microsoft Excel Misc 1 8th Jun 2006 02:26 AM
export/copy excel cells to Word =?Utf-8?B?U2FsaW0=?= Microsoft Excel Misc 1 23rd Apr 2006 09:09 AM
How do I copy cells from excel into word without the gridlines? =?Utf-8?B?SmFrZQ==?= Microsoft Excel Misc 11 8th Feb 2006 09:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:49 PM.