Sub CreatePPT()
Dim PPApp As PowerPoint.Application
Dim PPSlide As PowerPoint.Slide
Dim sht As Worksheet
Dim RangePasteType As String
Dim rng1, rng2 As Range
Dim oPPTPres As PowerPoint.Presentation
If PPApp Is Nothing Then Set PPApp = New PowerPoint.Application
If PPApp.Presentations.Count = 0 Then PPApp.Presentations.Add
PPApp.Visible = True
myPPT = ThisWorkbook.path & "\Cash - Supervisory_26th Feb'15.pptx"
Set oPPTPres = PPApp.Presentations.Open(fileName:=myPPT)
Set PPSlide = PPApp.ActivePresentation.Slides(8)
Set sht = ThisWorkbook.Sheets("Sheet2")
i = 9
Set rng1 = sht.Range("A2:H" & i)
'Set rng2 = sht.Range("A30:H61")
If rng1.Height > 100 Then
Do Until rng1.Height <= 100
Set rng1 = sht.Range("A2:H" & i - 1)
i = i - 1
Loop
rng1.Copy
With PPSlide.Shapes.PasteSpecial(ppPasteMetafilePicture)
.Align msoAlignCenters, True
.Align msoAlignMiddles, True
'.Item(1).ScaleHeight 2, msoCTrue, msoScaleFromMiddle
End With
End If
' With PPApp.Presentations.Add
' .SaveAs ("C:\Test.ppt")
' .Close
' End With
Set PPSlide = Nothing
Set PPApp = Nothing
End Sub