PC Review


Reply
Thread Tools Rate Thread

How can I save a Range in Excel to a Word File?

 
 
Denbor
Guest
Posts: n/a
 
      5th Jan 2007
I have a Range of cells in Excel that I wish to past into a Word file
so that I can make Labels with the Data.

This is what I have done so far but the commented Line doesn't work

Public Sub Label_maker()

Dim lrow As Range
Dim rc As Integer
Dim ar As Integer
Dim WdApp As Object

Set lrow = Sheet1.Range("A" & Rows.Count).End(xlUp)

lrow.Activate
ar = ActiveCell.row

Range(Cells(4, "a"), Cells(ar, "d")).Copy



'Set WdApp = C:\Documents and Settings\Owner\My Documents\Word\data.doc
<=== I know this is wrong but how do I do it? If I can get the info
into Word I know how to do a Merge, et.

Any Help would be greatly appreciated..

End Sub

Denbor

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFydGluIEZpc2hsb2Nr?=
Guest
Posts: n/a
 
      5th Jan 2007
Can't you just use the excel data source for the data in word?
Therefore you don't need to paste into word?

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Denbor" wrote:

> I have a Range of cells in Excel that I wish to past into a Word file
> so that I can make Labels with the Data.
>
> This is what I have done so far but the commented Line doesn't work
>
> Public Sub Label_maker()
>
> Dim lrow As Range
> Dim rc As Integer
> Dim ar As Integer
> Dim WdApp As Object
>
> Set lrow = Sheet1.Range("A" & Rows.Count).End(xlUp)
>
> lrow.Activate
> ar = ActiveCell.row
>
> Range(Cells(4, "a"), Cells(ar, "d")).Copy
>
>
>
> 'Set WdApp = C:\Documents and Settings\Owner\My Documents\Word\data.doc
> <=== I know this is wrong but how do I do it? If I can get the info
> into Word I know how to do a Merge, et.
>
> Any Help would be greatly appreciated..
>
> End Sub
>
> Denbor
>
>

 
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
Save only a range from an excel file to another zero.stress@gmail.com Microsoft Excel Programming 5 5th Dec 2007 05:07 PM
Save a selected range to a new text file in excel trongkhuongsg@gmail.com Microsoft Excel Misc 0 3rd Oct 2006 11:27 PM
How can I save an embedded Excel file in word back into an Excel =?Utf-8?B?R2JlbGx5?= Microsoft Word Document Management 1 11th Aug 2005 05:31 PM
How to save a copied data from an excel range as a text file. Prasad Vanka Microsoft Excel Programming 1 23rd Nov 2004 04:56 PM
Extracing out data to save into a word file or excel file =?Utf-8?B?SiBDaGV3?= Microsoft Outlook VBA Programming 1 4th Nov 2004 07:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:16 AM.