Last active
March 18, 2018 13:32
-
-
Save ateneva/6f2d35e8895357556432d755d8f0d568 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'open existing PowerPoint Application (Excel VBA) | |
'------------------------------------------------------------------------------------------------- | |
Dim PPApp As PowerPoint.Application | |
Dim PPpres As PowerPoint.Presentation | |
Set PPApp = New PowerPoint.Application 'creates a PP application and makes it visible | |
PPApp.Visible = True | |
'Open the presentation you wish to copy to | |
Set PPpres = PPApp.Presentations.Open("C:\Users\Angelina\Documents\Import-Export Balance.pptm") | |
'---------------------------------------------------------------------------------------------------- | |
'call PowerPoint application that's already open (Excel VBA) | |
Dim PPApp As PowerPoint.Application | |
Set PPApp = GetObject(, "Powerpoint.Application") 'use if you are planning on having your ppt open | |
Dim PPpres As PowerPoint.Presentation | |
Set PPpres = PPApp.ActivePresentation | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment