ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   POWERPOINT IN EXCEL (https://www.excelbanter.com/excel-programming/381221-re-powerpoint-excel.html)

Kari J Keinonen[_2_]

POWERPOINT IN EXCEL
 
Hi Glenn!

I think next code works.

Sub DrivePresentation()
Dim MyPowerPoint As Object
Dim MyPresentation As Object
Dim myPath As String

myPath = Application.ActiveWorkbook.Path
myPath = myPath & "\"
Application.ActivateMicrosoftApp xlMicrosoftPowerPoint
Set MyPowerPoint = CreateObject("PowerPoint.Application")
MyPowerPoint.Visible = True
Set MyPresentation = MyPowerPoint.presentations.Open(myPath & "Dias.ppt")
With MyPresentation.SlideShowSettings
.ShowType = ppShowTypeSpeaker
.Run
End With
End Sub

Regards
Kari J Keinonen


All times are GMT +1. The time now is 06:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com