Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Sending Excel ranges to Word as Metafile pictures

I have about 70 sheets in a workbook and 2+- table/chart ranges per sheet. I
need to copy these excel ranges and paste them in a word document (with
..pastespecial) as a Metafile picture.

Is there a different way of doing this w/o using copy/paste?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Sending Excel ranges to Word as Metafile pictures

Hi Richard,

This is the basic to copy that range to Word:
Sub pastetoWord()
Dim Wrd As New Word.Application
Range("A1:A10").CopyPicture xlScreen, xlPicture
Wrd.Documents.Add
Wrd.Visible = True
Wrd.Selection.Paste
End Sub
if you wish to copy in a word document, try this one:
Sub pasteallSheetstoWord()
Dim Wrd As New Word.Application
Dim Sht As Worksheet

Wrd.Documents.Add
Wrd.Visible = True

For Each Sht In ThisWorkbook.Sheets
Sht.Range("A1:A10").CopyPicture xlScreen, xlPicture
Wrd.Selection.Paste
Next Sht

End Sub

--
Regards,

Halim



"Richard" wrote:

I have about 70 sheets in a workbook and 2+- table/chart ranges per sheet. I
need to copy these excel ranges and paste them in a word document (with
..pastespecial) as a Metafile picture.

Is there a different way of doing this w/o using copy/paste?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Sending Excel ranges to Word as Metafile pictures

Halim, thank you for the response but your method uses copy/paste. Is there
an alternative way of doing this w/o using copy/paste?


"Halim" wrote in message
...
Hi Richard,

This is the basic to copy that range to Word:
Sub pastetoWord()
Dim Wrd As New Word.Application
Range("A1:A10").CopyPicture xlScreen, xlPicture
Wrd.Documents.Add
Wrd.Visible = True
Wrd.Selection.Paste
End Sub
if you wish to copy in a word document, try this one:
Sub pasteallSheetstoWord()
Dim Wrd As New Word.Application
Dim Sht As Worksheet

Wrd.Documents.Add
Wrd.Visible = True

For Each Sht In ThisWorkbook.Sheets
Sht.Range("A1:A10").CopyPicture xlScreen, xlPicture
Wrd.Selection.Paste
Next Sht

End Sub

--
Regards,

Halim



"Richard" wrote:

I have about 70 sheets in a workbook and 2+- table/chart ranges per
sheet. I
need to copy these excel ranges and paste them in a word document (with
..pastespecial) as a Metafile picture.

Is there a different way of doing this w/o using copy/paste?





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Sending Excel ranges to Word as Metafile pictures

Hi,

It is possible to do that thing without copy methode, but I never try that
one which create object for metafile using API, I think still use clipboard
memory to take the picture...

Try to visit OALTD.cu.uk at Bullen's page... find pastepicture.zip and
download it.
--
Regards,

Halim



"Richard" wrote:

Halim, thank you for the response but your method uses copy/paste. Is there
an alternative way of doing this w/o using copy/paste?


"Halim" wrote in message
...
Hi Richard,

This is the basic to copy that range to Word:
Sub pastetoWord()
Dim Wrd As New Word.Application
Range("A1:A10").CopyPicture xlScreen, xlPicture
Wrd.Documents.Add
Wrd.Visible = True
Wrd.Selection.Paste
End Sub
if you wish to copy in a word document, try this one:
Sub pasteallSheetstoWord()
Dim Wrd As New Word.Application
Dim Sht As Worksheet

Wrd.Documents.Add
Wrd.Visible = True

For Each Sht In ThisWorkbook.Sheets
Sht.Range("A1:A10").CopyPicture xlScreen, xlPicture
Wrd.Selection.Paste
Next Sht

End Sub

--
Regards,

Halim



"Richard" wrote:

I have about 70 sheets in a workbook and 2+- table/chart ranges per
sheet. I
need to copy these excel ranges and paste them in a word document (with
..pastespecial) as a Metafile picture.

Is there a different way of doing this w/o using copy/paste?






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you export pictures from my pictures file into a word docu Becky New Users to Excel 1 November 20th 09 07:02 PM
Pasting from xl into word as an enhanced metafile LB[_2_] Excel Discussion (Misc queries) 0 April 23rd 07 06:12 PM
Sending an e-mail from the Excel or Word toolbar Andy Excel Discussion (Misc queries) 2 December 26th 06 04:38 PM
How to put pictures into an excel document for merging in Word? PAW Excel Worksheet Functions 1 February 8th 06 05:51 PM
Sending from excel to word template pizdus Excel Discussion (Misc queries) 0 January 17th 06 05:57 PM


All times are GMT +1. The time now is 04:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"