Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As topic says: I would like som VBA code, that runs through all charts
in activesheet and copy pastes them to a new sheet as pictures and placed above the same cells... Can any of you out there help me :) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ChartsToPictures()
Dim chob As ChartObject Dim pict As Shape Dim shSource As Worksheet Dim shTarget As Worksheet Set shSource = ActiveSheet Set shTarget = ActiveWorkbook.Worksheets.Add(Befo=shSource) For Each chob In shSource.ChartObjects chob.Chart.CopyPicture xlScreen, xlPicture, xlScreen shTarget.Paste Set pict = shTarget.Shapes(shTarget.Shapes.Count) pict.Left = chob.Left pict.Top = chob.Top Next End Sub - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "TFriis" wrote in message ... As topic says: I would like som VBA code, that runs through all charts in activesheet and copy pastes them to a new sheet as pictures and placed above the same cells... Can any of you out there help me :) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I allow insert picture in sheet when it is protected | Excel Discussion (Misc queries) | |||
insert picture into protected sheet | Excel Discussion (Misc queries) | |||
Insert picture into protected sheet | Excel Programming | |||
Need macro to insert chart w/ FIXED size & location | Excel Programming | |||
copy charts & paste as picture, hide chart, size & place same picture as chart | Excel Programming |