Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm using Office 2003. Using VBA, I'd like to copy and paste a chart onto page 6 of a Word document/template. The below code copies and pastes to page 1. Any ideas what I have to add to: A) specify the page B) specify the position of the chart on the page, and C) give the chart a 'name' that can be referenced later within the macro (i.e., rather than some arbitrary number that Word might give it). Thanks for any ideas. Sub copy_charts_Word() Dim role_chart_sh As Shape Dim MSW As Word.Application Dim MSWfile As Word.Document Set MSW = New Word.Application MSW.Visible = msoCTrue Set MSWfile = MSW.Documents.Open("C:\Report_template.doc") Set role_chart_sh = Worksheets("Chart_Role").Shapes(1) role_chart_sh.CopyPicture Appearance:=xlScreen, Format:=xlPicture MSW.Selection.PasteSpecial Link:=False, DataType:=wdPasteMetafilePicture,_ Placement:=wdInLine, DisplayAsIcon:=False End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
hyperlinking to a specific page of a word document | Excel Discussion (Misc queries) | |||
PROBLEM:How to squeeze 2 Page sized Chart in Excel 2000 & embed in Word 2000 and print from Word to fit one page ??? | New Users to Excel | |||
Hyperlinks to a Specific Page in Word doc.. | Excel Discussion (Misc queries) | |||
search for a specific word and copy the word and the preceeding words until a comma | Excel Programming | |||
How do I copy a Word text file into Excel in a way that each char. | Excel Discussion (Misc queries) |