PC Review


Reply
Thread Tools Rate Thread

Coping data from excel to word

 
 
Oggy
Guest
Posts: n/a
 
      14th Apr 2007
Hi

I am writing a macro in excel to copy data from a cell and put it in
a
new word document. I have managed this OK, but i am struggling to
find
a code that copies a group of cells together, IE all the data in
cells G10:L2000


Has anyone got any suggestions for me?


Thanks


Oggy

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      15th Apr 2007
I got this from mrexcel.com website:

Range("A1:F15").Copy
' Tell Word to create a new document
appWD.Documents.Add
' Tell Word to paste the contents of the clipboard into the new
document
appWD.Selection.Paste

Reaching back a few years, to put this in a specific place in a word
document with text, you would need to know the paragraph and line reference,
and use collapse.
I never tried it with a table so I can't help much there. Check out the
mrexcel.com site.


"Oggy" wrote:

> Hi
>
> I am writing a macro in excel to copy data from a cell and put it in
> a
> new word document. I have managed this OK, but i am struggling to
> find
> a code that copies a group of cells together, IE all the data in
> cells G10:L2000
>
>
> Has anyone got any suggestions for me?
>
>
> Thanks
>
>
> Oggy
>
>

 
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
Coping Data from Excel to Word ggrott Microsoft Excel Misc 0 19th Sep 2008 04:21 PM
Coping data from excel to word Oggy Microsoft Excel Discussion 1 15th Apr 2007 09:09 AM
coping from excel to word Tom Microsoft Excel Worksheet Functions 7 2nd Oct 2004 11:10 PM
Re: How to avoid coping a link when coping a formula from another wor. Frank Kabel Microsoft Excel Misc 0 20th Sep 2004 08:03 PM
Re: Coping Word info into a column in Excel Shauna Kelly Microsoft Word New Users 0 12th Sep 2003 05:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 AM.