Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm pasting ranges and charts to a word document using these lines
'goto Bookmark WDApp.Selection.Goto What:=wdGoToBookmark, Name:=toBookM ' Paste the range WDApp.Selection.PasteSpecial Link:=False DataType:=wdPasteMetafilePicture, _ Placement:=wdInLine, DisplayAsIcon:=False or 'goto Bookmark WDApp.Selection.Goto What:=wdGoToBookmark, Name:="two" ' Paste chart at cursor position WDApp.Selection.PasteSpecial Link:=False DataType:=wdPasteMetafilePicture, _ Placement:=wdInLine, DisplayAsIcon:=False Is there a way that the macro can resize the picture that has bee pasted in the document. Thank -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You should be able to backspace and select the picture, then set the
height and width: WDApp.Selection.TypeBackspace WDApp.Selection.InlineShapes(1).Height = 100 WDApp.Selection.InlineShapes(1).Width = 200 MTBer < wrote: I'm pasting ranges and charts to a word document using these lines 'goto Bookmark WDApp.Selection.Goto What:=wdGoToBookmark, Name:=toBookM ' Paste the range WDApp.Selection.PasteSpecial Link:=False, DataType:=wdPasteMetafilePicture, _ Placement:=wdInLine, DisplayAsIcon:=False or 'goto Bookmark WDApp.Selection.Goto What:=wdGoToBookmark, Name:="two" ' Paste chart at cursor position WDApp.Selection.PasteSpecial Link:=False, DataType:=wdPasteMetafilePicture, _ Placement:=wdInLine, DisplayAsIcon:=False Is there a way that the macro can resize the picture that has been pasted in the document. Thanks --- Message posted from http://www.ExcelForum.com/ -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excellent, that works lovely.
Thank you for assistanc -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pasting Charts into Word then resizing them | Excel Discussion (Misc queries) | |||
Pasting excel into word | Excel Discussion (Misc queries) | |||
Pasting from Word into Excel | Excel Discussion (Misc queries) | |||
Pasting Excel data into Word doc. | Excel Worksheet Functions | |||
unwanted resizing when copy-pasting embedded charts | Charts and Charting in Excel |