excel vba powerpoint

Forum home » Delegate support and help forum » Microsoft VBA Training and help » Excel VBA - Powerpoint SaveAs

Excel VBA - Powerpoint SaveAs

resolvedResolved · Medium Priority · Version 2007

Tereesa has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Excel VBA - Powerpoint SaveAs


I have created (mostly sourced on internet) an Excel VBA code that will open a new powerpoint slide, then copy-paste selected objects from Excel to the slide, my problem now is how to save it?
I need it to pick up the file name as well as the location of where to save (as it is not always the same) from a excel cell. Is this possible?
I am struggling to find a solution online.

RE: Excel VBA - Powerpoint SaveAs

Hi Tereesa, thanks for your query. The answer depends on how you are manipulating the Powerpoint object. Ideally you should have created an instance of Powerpoint in an object variable and be manipulating Powerpoint's objects and methods using the variable. When you do that it should be something along the lines of "appPowerpoint.presentation.saveas" and then the filename as one of the arguments.

The filename can then simply be collected from the cell in Excel, dropped into a variable and passed as an argument to the SaveAs method above. It sounds fiddly but is actually very simple.

Hope this helps,


Tue 10 Apr 2012: Automatically marked as resolved.


Training courses


Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


VBA tip:

Stop Screen Flickering When Running Code

Running VBA code may cause the screen to flicker as the monitor is the slowest part of the program and cannot keep up with the very fast changes taking place.

To switch off the screen until the program is run enter the following code line:

Application.ScreenUpdating = False

The screen comes on automatically on completion of the program.

View all VBA hints and tips

Server loaded in 0.1 secs.