Hi I have been trying to piece together some code that would easily allow me to move named ranges (picture tool) images to specific slides in Powerpoint.
My excel tabs that has all the ranges is "Copy_Charts". My powerpoint presentation is QBR.ppt.
The current Code I am using does a go job of dumping all chart objects into a specified folder; howerver, I have pictures (named ranges) that I need copied to Powerpoint as images (non linked)as well.
=============
Public Sub ExportCharts(SheetName As String, TargetFolder As String, Format As String)
Dim mySheet As Worksheet
Dim myObject As ChartObject
Dim myChart As Chart
Set mySheet = Worksheets(SheetName)
For Each myObject In mySheet.ChartObjects
Set myChart = myObject.Chart
myChart.Export TargetFolder & "\" & myObject.Name & "." & Format, Format, False
Next
End Sub
===================
My excel tabs that has all the ranges is "Copy_Charts". My powerpoint presentation is QBR.ppt.
The current Code I am using does a go job of dumping all chart objects into a specified folder; howerver, I have pictures (named ranges) that I need copied to Powerpoint as images (non linked)as well.
=============
Public Sub ExportCharts(SheetName As String, TargetFolder As String, Format As String)
Dim mySheet As Worksheet
Dim myObject As ChartObject
Dim myChart As Chart
Set mySheet = Worksheets(SheetName)
For Each myObject In mySheet.ChartObjects
Set myChart = myObject.Chart
myChart.Export TargetFolder & "\" & myObject.Name & "." & Format, Format, False
Next
End Sub
===================