98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft VBA Training and help » Excel VBA - Powerpoint SaveAs
Excel VBA - Powerpoint SaveAs
Resolved · Medium Priority · Version 2007
Tereesa has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Excel VBA - Powerpoint SaveAs
Hi,
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.
Thanks!
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,
Anthony
Tue 10 Apr 2012: Automatically marked as resolved.
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
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
VBA tip:Stop Screen Flickering When Running CodeRunning 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. |