Thank you.. I kept working on it and came up with this and it works but sure can still clean it up a bit...
The only problem now as it works both 2013 & 2010 but the background paper width is less in 2010 and need to figure how to set margin.
Dim ppApp As Object
Dim ppSlide As Object
Dim Output As Workbook
Dim SheetName As String
Dim TestRange As Range
Dim TestSheet As Worksheet
Dim WorkbookName As String
Dim WorkSheetName As String
Dim Sheet1 As Excel.Worksheet
Dim PasteRange As Boolean
Dim RangePasteType As String
Dim RangeName As String
Dim AddSlidesToEnd As Boolean
Set Sheet1 = ActiveWorkbook.Sheets("PT DECK")
On Error GoTo 0
'Look for existing instance
On Error Resume Next
Set ppApp = GetObject(, "PowerPoint.Application")
'If not available create
If Err.Number <> 0 Then
Set ppApp = CreateObject("PowerPoint.Application")
End If
On Error GoTo 0
' Paste Image 1---------------------------------------------------------
'Add a presentation if none exists
If ppApp.Presentations.Count = 0 Then ppApp.Presentations.Add
'Make the instance visible
ppApp.Visible = True
'Check that a slide exits, if it doesn't add 1 slide. Else use the last slide for the paste operation
If ppApp.ActivePresentation.Slides.Count = 0 Then
Set ppSlide = ppApp.ActivePresentation.Slides.Add(1, 12) 'ppLayoutBlank
Else
If AddSlidesToEnd Then
'Appends slides to end of presentation and makes last slide active
ppApp.ActivePresentation.Slides.Add ppApp.ActivePresentation.Slides.Count + 1, 12 ' ppLayoutBlank
ppApp.ActiveWindow.View.GotoSlide ppApp.ActivePresentation.Slides.Count
Set ppSlide = ppApp.ActivePresentation.Slides(ppApp.ActivePresentation.Slides.Count)
Else
'Sets current slide to active slide
Set ppSlide = ppApp.ActiveWindow.View.Slide
End If
End If
On Error Resume Next
Sheets("PT DECK").Select
'Worksheets("Powerpoint").Range("AO1").Value = SlideTitle
Worksheets("PT DECK").Range("B35:T69").CopyPicture
'ppSlide.Shapes.PasteSpecial(ppPasteMetafilePicture).Select
ppSlide.Shapes.Paste.Select
'Center pasted object in the slide
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignMiddles, True
ppApp.ActiveWindow.Selection.ShapeRange.Top = 45
'ppApp.ActiveWindow.Selection.ShapeRange.Width = 541
ppApp.ActiveWindow.Selection.ShapeRange.Height = 540
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignMiddles, True
On Error GoTo 0
' Paste Image 2---------------------------------------------------------
'Check that a slide exits, if it doesn't add 1 slide. Else use the last slide for the paste operation
If ppApp.ActivePresentation.Slides.Count = 1 Then
Set ppSlide = ppApp.ActivePresentation.Slides.Add(2, 12) 'ppLayoutBlank
Else
If AddSlidesToEnd Then
'Appends slides to end of presentation and makes last slide active
ppApp.ActivePresentation.Slides.Add ppApp.ActivePresentation.Slides.Count + 2, 12 ' ppLayoutBlank
ppApp.ActiveWindow.View.GotoSlide ppApp.ActivePresentation.Slides.Count
Set ppSlide = ppApp.ActivePresentation.Slides(ppApp.ActivePresentation.Slides.Count)
Else
'Sets current slide to active slide
Set ppSlide = ppApp.ActiveWindow.View.Slide
End If
End If
ppApp.ActiveWindow.View.GotoSlide ppApp.ActivePresentation.Slides.Count
On Error Resume Next
Sheets("PT DECK").Select
'Worksheets("Powerpoint").Range("AO1").Value = SlideTitle
Worksheets("PT DECK").Range("B71:T105").CopyPicture
'ppSlide.Shapes.PasteSpecial(ppPasteMetafilePicture).Select
ppSlide.Shapes.Paste.Select
'Center pasted object in the slide
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignMiddles, True
ppApp.ActiveWindow.Selection.ShapeRange.Top = 45
'ppApp.ActiveWindow.Selection.ShapeRange.Width = 541
ppApp.ActiveWindow.Selection.ShapeRange.Height = 540
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignMiddles, True
On Error GoTo 0
' Paste Image 3-
Bookmarks