Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you export pictures from my pictures file into a word docu | New Users to Excel | |||
Pasting from xl into word as an enhanced metafile | Excel Discussion (Misc queries) | |||
Sending an e-mail from the Excel or Word toolbar | Excel Discussion (Misc queries) | |||
How to put pictures into an excel document for merging in Word? | Excel Worksheet Functions | |||
Sending from excel to word template | Excel Discussion (Misc queries) |