Hi,

I am working on a macro that copies the data from excel and pastes it to powerpoint. The code works fine in Excel 2013 but throws an error when running in Excel 2010 and sometimes vice-versa.
The error being "Missing: Microsoft Powerpoint 15.0 Object Library"
This reference can be updated manually but is it possible to do that through the same code. The code errors out in the first line itself.

Below given are the declarations that are done in the code:
Dim PPApp As PowerPoint.Application    
Dim PPPres As PowerPoint.Presentation
Dim PPSlide As PowerPoint.Slide

Dim PresentationFileName As String
Dim SlideCount As Long
Please help me out from this issue.

Thank you for your help in advance.