Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code is designed to copy 2 charts from one sheet and pastes
them as a picture onto another sheet. How do I assign the pasted picture to a variable so that I can manipulate it (i.e. change the location, width, etc) The following code does not work (throws an "Object Required" error on 'Set myObj =') Any ideas? Sub testMe3() Worksheets("Graph").Select ActiveWindow.Visible = False Windows("Report_Aug06.xls").Activate Sheets("Graph").Shapes.Range(Array("Chart 40", "Chart 43")).Select Selection.Copy Worksheets("Instructions").Select Range("A97").Select Dim myObj As Shape 'As Object Set myObj = ActiveSheet.PasteSpecial(Format:="Picture (Enhanced Metafile)", Link:=False, DisplayAsIcon:=False) Debug.Print TypeName(myObj) & " - " & myObj End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Paste and Paste Special No Longer Working - Excel 2003 | Excel Discussion (Misc queries) | |||
Special Pasting Quattro Pro 9 file as bitmap, how to manipulate now? | New Users to Excel | |||
In Excel: add a Paste-Special Option to paste IN REVERSE ORDER. | Excel Worksheet Functions | |||
How do I capture user paste action and convert to Paste Special | Excel Programming | |||
Dynamic Copy/Paste Special Formulas/Paste Special Values | Excel Programming |