This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Presentation.Save method (PowerPoint)

  • 7 contributors

Saves the specified presentation.

expression . Save

expression A variable that represents a Presentation object.

Use the SaveAs method to save a presentation that has not been previously saved. To determine whether a presentation has been saved, test for a nonempty value for the FullName or Path property. If a document that has the same name as the specified presentation already exists on disk, that document will be overwritten. No warning message is displayed.

To mark the presentation as saved without writing it to disk, set the Saved property to True .

This example saves the active presentation if it is been changed since the last time it was saved.

Presentation Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.

Was this page helpful?

Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback .

Submit and view feedback for

Additional resources

Let's excel in Excel

Complete VBA tutorial to interact with Power point Presentations – Part – 1

Excel macro tutorial.

[fusion_text] D

ear Friends,

First of all, I apologize for not responding to many of your questions around dealing with PowerPoint presentations through Excel Macro. Many of you have sent me so many questions around this topic. Questions, which were, mostly, asked were like –

Sample List of Questions…

  VBA code to create a presentation slide based on a Table in Excel   Excel macro to create a Slide with Graph and Table in Excel   Macro to paste Graph from Excel in to a PPT in a specific Slide   VBA code to remove old graph from a specific slide and place the new generated graph in Excel – Like refresh button

This list i just a summary what has been asked so far. Many of the questions were too specific, hence I have not mentioned them here. Therefore, I thought of writing a tutorial (more than a single article) and cover most of the aspects related to interaction with PowerPoint presentations through Exel VBA. Rather putting everything in one article, I am splitting in to more than one article. As part of this tutorial, I am sure, you will learn all the basic things (regular things) to interact with PowerPoint Presentations through Excel VBA. Furthermore, you will have readily available VBA code snippets for all the basic operations, one can perform on Presentations like Open, Close, save, Copy a slide from one Presentation to other, deleting a slide, modifying the content of the slide and so on.. Finally, at the end of this tutorial , you will find a FREE Excel VBA tool to download . Mostly in the next article of this tutorial.

Topics covered in this Article

Click on the links to directly jump to that particular section…

  Basics about Power Point Application Object Model in Excel VBA

  vba code to create a new presentation (power point presentation file),   vba code to add slides in ppt,   vba code to save a new ppt – saveas statement,   vba code to open an existing presentation file,   vba code to save an existing presentation file – save statement,   vba code to save and close powerpoint presentation,   vba code to delete slides in ppt.

Since we are going to access an application which is out side Microsoft Excel. Therefore to interact with that application you should have a good understanding of Objects and Methods of that application. Here in this article I am NOT going to explain you about all the Objects, Methods and Properties of PowerPoint Application but few of them to make you comfortable. To know all possible Objects, Methods, Properties and their hierarchy you can refer this page: http://msdn.microsoft.com/en-us/library/office/aa213568(v=office.11).aspx .  

VBA to Create a New Power Point Application

To start with any operation with any kind of PowerPoint file, you need to create an Object for the application itself. Therefore your code will always start with a statement to create an Object for PowerPoint Application:

As soon as the above line of statements are executed you can see a Power Point File launched which will look like below:

Power-Point-Application-Object

As you can see in the above image only a simple Application is launched. It has no placeholder for presentations and Slides. This is because you have just created an Application Object.

Now we have an Application Object so we can create multiple Presentation File from this.

Above code snippet will add 2 presentations (2 PowerPoint files) as you can see in the below images:

Presentations-Object

But these presentations will be looking something like below – an Empty Presentations without any Slide in it.

PowerPoint-Presentation-Object

Power Point Presentation Object

As you can see in the above image, there is no slide. Now let us see how to add a slide in a presentation created above.

VBA code to add slides to PowerPoint Presentation

In the above example you had added two new presentations with no slide. As you already know, each presentation file may contain multiple slides in it. That means, a Presentatio Object holds a collection of Slides. This means…You can add slides to Slides collection using .Add method of Slides object (Collection of Slide). Refer the Syntax of this method below

Syntax of .Add Method

.Add method belongs to Slides Object. [highlight color=”yellow”]MyPresentation1.Slides.Add <Index Number> , <Layout of the slide>[/highlight]

Index Number: Slides is basically a collection of all Slide Object, a Presentation has it. Therefore to add a slide in Slides collection, you need to pass the index number which tells the position of the new slide in Slides collection. In simple terms, this indicates the position of your Slide in your PowerPoint Presentation. For example: If you pass Index number as 3 then new slide will be added at 3rd position, no matter how many more slides are there. But if total number of slides are less than 2 and you passed index as 3 then it will throw an error.

Layout of the slide: This basically tells the type of Layout you want for your new slide. There is a list of around more than 20 layout type which you can use it for Power Point 2007. You can pass the exact VBA name of a layout or just an integer number (depending on the version of the Office you have in your computer)

Save & Close PowerPoint Through Excel VBA

Let’s have a look – on how to save and close a power point presentation using Excel VBA. .Save and .Close is the keywords to save and close a presentation respectively. These methods belongs to Presentation Object.

In case you want to save your presentation with a different name or at different location then you can use .SaveAs method. The only difference in both these methods is – For .Save you do not need to provide file path but for .SaveAs it is mandatory to provide the file path. Refer below code.

What did we learn so far?

1. How to create Power Point Application , Presentations and Slides Objects 2. How to create new Power Point Presentations 3. How to add slides to power point presentation 4. How to Save and Close Presentations in Excel VBA

VBA to Create a New Power Point Presentation

As I have explained above, I will club all the lines of code with some more statements together and form a single code which will do the following :

1. Create 2 New Power Point File 2. Add 5 slides in one presentation and 3 in second one. 3. Save these power point presentation files on your desktop

  You have learnt above, how to create a new Powerpoint presentation with multiple slides in it, save and close it. Now I will teach you how to open an existing Power Point file using Excel VBA

Excel VBA to open PowerPoint Presentation File

First you need to create a PowerPoint Application object which will actually hold your opened presentation file. If you do not have a valid Power Point Application object then you can not open your presentation file directly.

To open a presentation you can use the below statement:

objNewPowerPoint – is your defined Power Point Application Object FilePath – This is the complete path of the file with file name with file extension

Above statement opens a presentation file which is a Presentation Object. Therefore we should assign this to a unique object so that at any point of program we can refer this presentation uniquely.

Now you can use MyPresentation3 presentation object to add slides to it, delete, save, close etc. same as the above code.

Now let us create an example with everything we learnt so far. In this example, I am going to do the following:

1. open an Existing power point presentation 2. Add a Slide at 3rd position (make sure that the file you choose, has, at least 2 slides other wise it will through as an exception as explained above) 3. Save and close the presentation

Important: Difference between Save and SaveAs

In the first example as well we saved one presentation. But in this example Save is different. If you notice in the first example we had used SaveAs because it was a new file and we have to give a valid path and name to save it but in this example this file is already saved in a particular location with a name from where you have opened it.

Therefore in this case you can simply run the Save command which will save the changes you made in that presentation. But if you still want to save this as a different file name or location you can go ahead with SaveAs command. Save As is same as the save as command in any file.

VBA Code to delete slide from PowerPoint Presentation

.Delete method is used to delete a single slide from Slide collection. This method belongs to a single Slide Object. You must identify a single slide item from Slides collection before deleting it.

pSlides(slideNumber).Delete

pSlides.Item(slideNumber).Delete

pSlides : Variable of Slides type where Slide collection of the presentation stored from which slides has to be deleted

slideNumber : As the name says.. Slide number which you want to delete. Like for 1st Slide – 1, for second – 2 and so on..

Important Point

While adding a new slide, we add it in the collection (Slides), therefore .Add method belongs to Slides collection. But, while deleting a slide, we delete individual slides from the collection, therefore .Delete is a method of Slide object -> (Slides.Item(i))

About the Next Article…

In this article I will cover the following: 1. Create Power Point Presentations by creating the Object using CreateObject keyword. 2. Some Useful and practical Examples

Buy a coffee for the author

save powerpoint presentation vba

Get a FREE e-Book

With over  50,000+  readers and counting  Join NOW and get a  FREE E-book  to download !!

You have Successfully Subscribed!

save powerpoint presentation vba

Download FREE Tools and Templates

There are many cool and useful excel tools and templates available to download for free. For most of the tools, you get the entire VBA code base too which you can look into it, play around it, and customize according to your need.

Dynamic Arrays and Spill Functions in Excel: A Beginner’s Guide

Dynamic Arrays and Spill Functions in Excel: A Beginner’s Guide

Feb 9, 2024

In today's tutorial, we'll be diving into the exciting world of dynamic arrays and spill functions in Office 365 Excel. These features have revolutionized the way we work with data, providing a more flexible and efficient way to handle arrays. I am going to explain...

How to Declare a Public Variable in VBA

How to Declare a Public Variable in VBA

Feb 3, 2024

While programming in VBA sometimes you need to declare a Public Variable that can store the value throughout the program. Use of Public Variable: Let's say you have 4 different Functions in your VBA Code or Module and you have a variable that may or may not be...

How to Copy content from Word using VBA

As many of us want to deal with Microsoft Word Document from Excel Macro/VBA. I am going to write few articles about Word from Excel Macro. This is the first article which opens a Word Document and read the whole content of that Word Document and put it in the Active...

What is Excel Formula?

Excel Formula is one of the best feature in Microsoft Excel, which makes Excel a very very rich application. There are so many useful built-in formulas available in Excel, which makes our work easier in Excel. For all the automated work, Excel Macro is not required. There are so many automated things can be done by using simple formulas in Excel. Formulas are simple text (With a Syntax) which is entered in to the Excel Worksheet Cells. So how computer will recognize whether it is a formula or simple text? Answer is simple.. every formula in Excel starts with Equal Sign (=).

You May Also Like…

How to connect to access database – ado connection string.

Using Excel Macros (VBA) you can connect to any Databases like SQL, Oracle or Access DB. In this Article you will...

 width=

ADO RecordCount Property – RecordSet Object

The RecordCount property returns a long value that indicates the number of records in a Recordset object. Many a times...

How to Get Excel version using VBA Code

Feb 2, 2024

Dear Friends, Usually while working on any of the VBA projects, it becomes important for me to first check the version...

Mohammad Faizullah

Hi, My name is Faiz. I need your help to consolidate multiple ppt slides in a single slide but condition is that multiple name in a excel sheet. how to consolidate according to Name wise(Name is available in excel sheet).plz help me to create this code.

Thanks, Faiz

Sai

Hi Faiz, Have you got your answer ? If yes, reply with the code so that others can also learn from yours.

Otherwise attach a sample file with your requirement.

vicky

I am getting an run time error while opening ,save as and closing PowerPoint using excel vba. Need help its urgent

thanks in advance

Trackbacks/Pingbacks

  • Welcome to LearnExcelMacro.com Interacting with Powerpoint Slides – Tutorial – Part 2 (Last) - […] is a continuation of my previous article about Interaction with Power point Slides using Excel Macro. In my previous…
  • Complete VBA tutorial to interact with Power point Presentations - Part - 2 - […] is a continuation of my previous article about Interaction with Power point Slides using Excel Macro. In my previous…

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

Submit Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed .

Join and get a FREE! e-Book

Don't miss any articles, tools, tips and tricks, I publish here

Pin It on Pinterest

How to use VBA in PowerPoint: A beginner’s guide

  • Written by: Jamie Garroch
  • Categories: PowerPoint productivity , Presentation technology
  • Comments: 45

save powerpoint presentation vba

Here at BrightCarbon we’re always looking for new ways to improve our own PowerPoint productivity and then share that knowledge with the presentation community (that includes you, by the way!). One of the ways we do this is by using VBA code to automate and extend the functionality of PowerPoint. We publish  free PowerPoint VBA code snippets here in our blog for you to use and also offer a PowerPoint automation service . This article explains how to grab the code from our articles and use it in your PowerPoint project, so that you can take your productivity to the next level!

What is VBA?

Visual Basic for Applications (VBA) is a programming environment for Microsoft Office applications. It’s included with your installation of Office by default  ( unless your system administrator has deactivated it ) . PowerPoint VBA provides you with a way to do one of two things   using macros and add-ins:  

  • A utomate  PowerPo int:   If you ever find yourself repeating the same task over and over again, VBA could be your new best friend.  Let’s say you have 100 slides and you need to unhide all hidden objects  across all those slides . That could take you  many  eye-straining minutes, but with a PowerPoint VBA it takes around a  second.
  • E xtend  PowerPoint :   Sometimes PowerPoint doesn’t have the feature you need  to complete your task . As an example, if you end up deleting default layouts from a template, there’s no  easy  way in PowerPoint to get them back. This article includes PowerPoint VBA code to do just that!

How to open the VBE (Visual Basic Editor)

Getting to meet your VBA friend is very simple. With PowerPoint open and at least one presentation file open, press  Alt+F11 * on your keyboard. This will open the VBE (Visual Basic Editor):  

PowerPoint VBE No Modules

*If for some reason Alt+F11 isn’t mapped on your keyboard you can right click anywhere on the ribbon, select  Customize the Ribbon…  and in the window that appears, tick the  Developer Tab  check box over on the right hand side before clicking  OK  to close the window. Now you can click the  Visual Basic  button within this tab:  

PowerPoint Developer Tab Visual Basic

Adding PowerPoint VBA code  

To add some VBA code, you need a container to put it in so go ahead and click  Insert  from the menu and then select  Module :  

PowerPoint VBE Insert Module

You now have a module ready to paste the VBA code into  from one of our blog articles :  

PowerPoint VBE Module Inserted

Copy the VBA code from  the required blog article  by double-clicking on it and then paste it into the  Module1  window above.  Here’s a very simple example of some code  to display a message dialogue :

You should now see something like this:  

PowerPoint VBA

Because this code is just a single  Sub  procedure called  HelloWorld , it’s referred to as a macro.  

Running  the PowerPoint VBA macro  

Now you have the macro in your presentation you can use  Alt+Tab  to return to the more familiar PowerPoint window. From here, the macro can be run by pressing  Alt+F8  on your keyboard  (or b y  clicking the  Macros  button in the Developer tab)  which opens a window containing a list of available macros:  

PowerPoint VBA

Security Soup

The first time you add VBA code to a file, Microsoft assumes that it is safe because you added it. As soon as you save, close and reopen the file, Microsoft doesn’t know that it’s your code so it will disable it by default. You can tell the Office app to allow your code to run either by signing it with a digital certificate (beyond the scope of this article) or by lowering the security setting for the app. You can do this in PowerPoint by clicking File / Options / Trust Center / Trust Center Settings / Macro Settings and selecting this option shown below:

VBA Macro Settings

Saving your file  

save powerpoint presentation vba

Once you ’ve added  VBA code  to  your presentation, PowerPoint will  ask you to save it as a  pptm  file  (the ‘m’ stands for macro)  instead of the more  familiar  pptx  format .  You can go ahead and do this to  either  keep a n archive  copy of your  code-enabled  project  or   to  create your personal macro library.  

If you want to distribute your  presentation,   it’s advisable to   save  it  using the familiar pptx format so that  your  recipients don’t see lots of verbose  security  messages  when opening  pptm  files!  

Y ou can  make  your file saveable as a standard presentation again  by  right – click ing  on  each   code module in the  project explorer pane , clicking  Remove   ModuleX …   and either click  Yes   (if you want to keep a backup of the modules independently of your presentation)  or  No   when  asked if you want to save the module before removing it :  

save powerpoint presentation vba

Now your presentation doesn’t include any code and you can save it as a pptx file.  

So, there you have it.  You now know how to open the VBE, insert a PowerPoint VBA code module, paste code into it, run the macro and save the file in either pptm  or pptx formats. All you need is a cool macro to make your daily life even easier. Keep checking in with our blog for more useful macros – like this one on restoring default slide master layouts!

Got something extra you’d like PowerPoint to do?

Check out our PowerPoint automation service which provides you with a custom solution to your specific needs.

save powerpoint presentation vba

Jamie Garroch

Principal technical consultant, related articles, how to consistently brand graphs and charts across microsoft office.

  • PowerPoint design / PowerPoint productivity
  • Comments: 1

How do you make sure that your graphs and charts have consistent branding across Excel, PowerPoint and Word? Learn how to create and use custom templates that support your brand identity across Microsoft Office.

save powerpoint presentation vba

Changes to VBA Macro Security in Microsoft 365

  • Presentation technology / Industry insights
  • Comments: 2

You can do some really cool things in Microsoft Office with just a few lines of Visual Basic for Applications (VBA) - from creating your own custom formula in Excel to correcting branded content in PowerPoint to merging address data for a mail campaign in Word. And sometimes you need to share that VBA solution with colleagues and clients, via the Internet. A change that Microsoft rolled out at the end of March 2022 tweaks the process required by Windows users to gain access to this active content.

save powerpoint presentation vba

Protecting your prized PowerPoint content

  • PowerPoint productivity / Presentation technology

Our comprehensive guide to password protecting PowerPoint files so your precious presentations stay just they you made them!

very simple, very explicit, very good help for a beginner vba programmer in powerpoint. Thanks

great resource, thanks. I’ve used VBA for years in MSaccess, and this is a good refresher for me.

I am trying to make a ppt file that loops until stopped. then I save it as a video. the ppt ran and looped continuously. Once recorded as video it stopped looping. do you have code to make ppt work when in video format

Hi Charles. As soon as you export a PowerPoint deck as a video all the PowerPoint functionality is removed as the file is magically transformed into an MP4 file, without VBA (sob sob). The only way to make the video loop is to use the looping feature of your video player.

Yeah, your best off recording a screen capture of the presentation running, then cutting it so it loops perfectly.

You can convert the video into gif file so that it will loop

Hi Jamie, thanks for the clear into, I am very new to this so that really helps. I am trying to develop a VBA macro that looks for the left hand mouse key being pressed and held down for more than two seconds whilst over a shape in slideshow mode. Once this is satisfied (i.e. two second press) for it then to hyperlink or take the user to a specified slide or even the next slide worst case.

I realise there is an automated/ built in feature (Action) that does this type of thing for a mouse click or mouse over but I really need a “long press” to activate if possible.

Any help appreciated.

Hi Simon and thanks for a great question. What you’re looking to do is pretty complex because VBA doesn’t natively support mouse actions in the PowerPoint slide show window. But, it is possible to use a Windows API (hence no Mac compatibility) called GetAsyncKeyState to gain access to mouse button click events. I had a look at this and quickly ran into a brick wall because an action link to a macro in slide show mode (Insert / Action / Mouse Click / Run macro) fires on the mouse up event, not mouse down. That means any corresponding VBA timer code can’t run until after the user releases the button and hence too late to detect if it was held down for two seconds. Maybe something could be done with the mouse over event to simulate what you need to achieve? Another approach could be to use the mouse down event on an invisible userform although that is also getting very involved with multiple Windows APIs. Depending on what you’re trying to do, you could also start the timer on click one, change the colour of the clicked shape and show countdown text before reverting to the original colour. If the user clicks a second time before the time expires, then the hyperlink is fired.

Valuable app

Hello I have a question:

Private Sub CommandButton2_Click() ActivePresentation.FollowHyperlink _ Address:=”http://192.168.16.49/?OUT1=ON”, _ NewWindow:=False, AddHistory:=False ActivePresentation.SlideShowWindow.View.GotoSlide (2)

Now it opens Chrome. but how can i make it that it opens te address en afther that shut down chrome.

Hi Tom. Your example should open the default browser at the URL specified by the Address parameter. For more information on the FollowHyperlink method, see this Microsoft documentation: https://docs.microsoft.com/en-us/office/vba/api/powerpoint.presentation.followhyperlink

Thank you very much! It’s exactly what I needed.

I have tried using your randomizing macro with a powerpoint – I must be doing something wrong, because it isn’t putting the slides in random order. Please advise! I copied the macro exactly (using cut & paste), and thought I was following all the directions here for how to use it in the powerpoint. But, no random presentation of the slides. Boo hoo!

Hi Marya. Let’s check that VBA is installed and enabled on your machine. Can you add the following macro to the VBE project (just below the existing one) and try to run it from the PowerPoint window using Alt+F8?

Sub CheckVBA() MsgBox “it’s working” End Sub

Make sure the quotes are the straight type.

I am trying to format my title page so that the number displayed is equal to the linked slide and updates automatically wherever the slide is moved. For example “about us” is on slide #5 and linked, so it goes to slide 5 when you click on the word. I need the number (in a separate text box) to update automatically to the slide number location that the link goes to.

Hi Mary and thanks for the question. It looks like you’re interested in some kind of automated agenda slide builder. That’s a fair bit of code to create and quite complex as it needs to handle events from PowerPoint to detect when slides have moved. It could be possible to write a simpler macro which you run manually each time you want to update that title page. You’d need start by finding a way to identify which objects are your numerical indicators. For example, if you named your objects in the selection pane (Alt+F10) “Agenda Link”, then is simple macro could be a starting place for you: Sub UpdateAgendaNumbers() Dim oSld As Slide Dim oShp As Shape Dim LinkedSlideIndex As Long On Error Resume Next For Each oSld In ActivePresentation.Slides For Each oShp In oSld.Shapes If oShp.Name = “Agenda Link” Then If oShp.ActionSettings(ppMouseClick).Action = ppActionHyperlink Then If oShp.HasTextFrame Then LinkedSlideIndex = Split(oShp.ActionSettings(ppMouseClick).Hyperlink.SubAddress, “,”)(1) oShp.TextFrame.TextRange.Text = LinkedSlideIndex End If End If End If Next Next End Sub

Great wealth of information. Have never used macros before but was looking to use them to help with this situation. At work we use Work Orders (created in Power Point) and are looking to include a sequential number to them (print 50-100 copies of one slide with the numbers) and if possible would like the number to continue from the last printed number…been trying to find some code to help but not having much luck possible partly due to being new to macros

That’s definitely something we could help design for you Joshua. If you’d like to discuss further, please click the Contact button at the top of this page.

I tried this changing the font color of text within the textbox. I used this to change the font color on a mouse over:

Public Sub GraphicHover(ByRef oGraphic As Shape)

oGraphic.TextFrame.TextRange.Font.Color.RGB = RGB(0, 130, 202)

and it works just fine. But, when I move the mouse off the text box, onto the invisible rectangle with this code attached to the mouseover event, it doesn’t change the text color back to it’s original color and remains the color I changed it to mentioned above. I know the mouseover event is being triggered because I checked “Highlight when mouse over” and I am seeing the highlight on the invisible rectangle:

Public Sub ResetGraphicHover(ByRef oCover As Shape) Dim oSld As Slide Dim oShp As Shape Set oSld = oCover.Parent For Each oShp In oSld.Shapes With oShp.TextFrame.TextRange.Font.Color If .RGB = RGB(0, 130, 202) Then .RGB = RGB(121, 135, 156) End With Next End Sub

Any clue where my ResetGraphicHover is failing?

Hi Dave. I took your code and it works for me. You could add a debug line after the For Each… line in the rest macro to check that (a) it’s firing and (b) which shapes are being looked at on your slide. To do that, add this:

Debug.Print oShp.Name

After you run the slide show, check the output in the VBE Immediate pane (Ctrl+G to toggle it).

Hi I am creating an interactive game (matching cards or concentration) in PowerPoint. If the 2 cards match, I need a pop-up text box to appear. If the 2 cards do not match, I need a sound to play.

I understand I need programming to make this happen. Please help or give alternative ways to achieve this. Thanks.

Hi Tammy. Have a look at this article which will help you: https://www.brightcarbon.com/blog/powerpoint-memory-game/

Hi Producer I will like to get comments on macros you can make available to me. Beautiful. I am using this approach frequently to make offline projects. Thanks. S. Fas

Excellent!!! Thank you!

You’re more than welcome Nataša!

Thank you! Is there any option to replace a font in the entire presentation for a specific character. Let’s say, I would like to change font only for dots in the deck but I would like to keep the rest in the original font. Any idea please? Thank you so much!

Hi Jan. You might be able to use the Replace Fonts feature found in the Home tab of PowerPoint under the Replace menu at the far end of the ribbon. If you need to use VBA then set up a nested loop to iterate all shapes within all slides and then use the oShp.TextFrame2.TextRange.Font object to change the font.

Exellent explenation. so beutiful. I am creating an interactive e learing quiz. Thanking you.

Hello! I have a client who’s interested in using tagging to help create searchable content within slides. For example, they have four different categories for slide content across multiple presentations (Overview, Market, Product, Country). I’d like to assign a different shape to represent each of the four categories, where a blue square might represent Overview slide content. Then, when someone uses the keyword “Overview” to search for overview content (on Teams or SharePoint), these slides are easily identified. Is this something that’s possible with VBA code?

Hi Linda. That’s a very good question! Given the need is to search via SharePoint, VBA probably won’t help here as the PowerPoint file needs to be opened for VBA to examine its content. I have a sneaking suspicion that if you add keywords in the Tags field under File / Info that SharePoint may use this. But, that’s at the file level rather than the slide level. We have a PowerPoint add-in called ShowMaker that might be of interest as it allows you to add category metadata to slides and then the presenter can use that to filter the deck and export the required content. You can find an overview of it here: https://www.brightcarbon.com/showmaker/ and we could set up a demo if you’re interested (please use the Contact button at the top of this page if that’s the case).

I’ve just created an elearning package in PowerPoint using VBA , I didn’t realise it could sum up text boxes within PowerPoint to mark the qualification at the end. Also used AWS text to speech over the top of the learning . Looks great

Sounds like a fun and successful project Stu! Thanks for sharing 🙂

I have a bit of a tricky one but hoping it is possible to do with VBA. We offer training services to multiple clients that can be customized but the majority of training is consistent from one client to the next (main changes are the slide masters/formatting and addition/removal of certain sections).

What we want to do is create one master (or multiple) training document(s), and then use VBA’s to link it to the client specific PowerPoint. We want to link the master rather than using the “reuse slide” command so that if we update one file the other will automatically update as well.

Not sure if it matters, but our company uses sharepoint as storage

Hi Dave and thanks for a great question. VBA is an excellent solution for automating a manual process. In general, if a person can perform a task manually via a sequence of pre-defined steps then VBA can do it automatically, faster, and with less chance of mistakes for something done many times. We’d be happy set up a call to discuss your needs further and see what could be automated with VBA. If that’s of interest, please use the contact button at the top of the page and mention my name in the form.

PP does not seem to have the record macro feature. To write vba code in PP by someone who only worked with vba in excel, would require some prior knowledge. Is there a summary of the most common objects, methods etc to refer to?

Hi Reef. You’re correct that there’s no VBA macro recording feature in newer versions of PowerPoint. The best place to start learning is by purchasing a book (there’s one called “Mastering VBA for Microsoft Office 365” on Amazon or reading the extremely exciting Object Model documentation from Microsoft: https://docs.microsoft.com/en-us/office/vba/api/overview/powerpoint/object-model

Hi Greeting I had made a game in power point using VBA codes. At last it generate a report every time a candidate conduct the game . My requirement is to generate result in same excel sheet after conducting the game. Like Row 1 player 1 result Row 2 player 2 result I need your help Regards

Hi Asheesh. It’s possible to use VBA to get PowerPoint to “talk” to Excel (and other Office apps) but it’s a bit complicated to mention in a comment here. We’d be happy to help if you’d like a quote or if you want to try yourself you could start with this: Set oXL = CreateObject(“Excel.Application”) and have a look at some online examples. I’d also recommend the book “Mastering VBA for Microsoft Office 365” available from Amazon.

If there are two colors of font in the textFrame, how to change the font of one color through VBA?

Hi Bruce. You could either iterate through the Characters collection of the TextRange2 object or the Runs collection which returns all of the TextRanges with the same style. Example: ActiveWindow.Selection.ShapeRange(1).TextFrame2.TextRange.Runs(1).Font.Fill.ForeColor.RGB

Hi – can you help, please?

How can I change the font color and size of the message box? What code will work and where will I put it? Creating an interactive game in powerpoint. Thank you!

—– Sub Correct() Points.Caption = (Points.Caption) + 10 Output = MsgBox(“Your answer is correct, well done!”, vbOKOnly, “Correct Answer”) ActivePresentation.SlideShowWindow.View.Next End Sub

Sub Incorrect() Points.Caption = (Points.Caption) – 5 Output = MsgBox(“Your answer is incorrect.”, vbOKOnly, “Wrong Answer”) ActivePresentation.SlideShowWindow.View.Next End Sub

Sub Reset() SlideLayout.Points.Caption = 0 ActivePresentation.SlideShowWindow.View.Exit End Sub ———-

Thanks for your explanation.

Hi Jamie, Is there any way to keep my macro save in a file so I can utilize on any other PPTs equivalent as.normal.dotm for Word, .xlam(add-in) for Excel.

Hi Anurag. Thanks for the question and Happy New Year! The best way to do this would be to export your project as a ppam and activate it as an add-in via the PowerPoint add-ins UI. Save your ppam in %AppData%\Microsoft\AddIns and then in the Windows PowerPoint Developer tab, click PowerPoint Add-Ins and add your ppam from there. If you’re not code-signing your VBA project, you may need to adjust Trust Centre settings. You could optionally build an EXE/MSI installer package for Windows and PKG for macOS, although that is a more complex topic.

Join the BrightCarbon mailing list for monthly invites and resources

I am always astonished at how quickly BrightCarbon consultants pick up the key messages in very complex healthcare services. Sarah Appleton Brown Practice Plus Group

save powerpoint presentation vba

save powerpoint presentation vba

Save a presentation that contains VBA macros

Macros can be created for PowerPoint using Visual Basic for Applications (VBA). A presentation that contains VBA macros must be saved with a different file-name extension than a regular presentation file (such as .pptx, .potx, or .ppsx) that has no macros in it.

To save a presentation that contains VBA macros, do the following:

Click the File tab, and then click Save As .

In the Save as type list, select one of the following:

PowerPoint Macro-Enabled Presentation     A presentation with a .pptm file name extension that can contain VBA code.

PowerPoint Macro-Enabled Show     A show with a .ppsm file name extension that includes pre-approved macros that you can run from within your presentation.

PowerPoint Macro-Enabled Design Template     A template with a .potm file name extension that includes pre-approved macros that you can add to a template and use in your presentation.

Click Save .

Facebook

Need more help?

Want more options.

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

save powerpoint presentation vba

Microsoft 365 subscription benefits

save powerpoint presentation vba

Microsoft 365 training

save powerpoint presentation vba

Microsoft security

save powerpoint presentation vba

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

save powerpoint presentation vba

Ask the Microsoft Community

save powerpoint presentation vba

Microsoft Tech Community

save powerpoint presentation vba

Windows Insiders

Microsoft 365 Insiders

Was this information helpful?

Thank you for your feedback.

  • Mark Forums Read
  • View Site Leaders
  • Knowledgebase
  • Consulting Services
  • PayPal Donation
  • Advanced Search
  • VBA Code & Other Help
  • PowerPoint Help

Solved: Creating a VBA to save presentation

  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Thread: Solved: Creating a VBA to save presentation

Thread tools.

  • Show Printable Version
  • View Profile
  • View Forum Posts
I have struggled for two days to get a presentation to save using VBA. I get multiple error messages that I don't understand and have googled everyway I can think. Basically, I have a macro that copies an excel spreadsheet into powerpoint using a VBA in Excel 2007 and now I want it to save the presentation when it is done. The program does a loop until active cell is empty then it exits. I want it to save the document when the loop is done. Sub Copytoppt() Do Until IsEmpty(ActiveCell) There are a whole lot of commands inside the loop and they work. They were copied from a post inside this website - Export Excel range or Excel chart to PowerPoint (linked or unlinked) I just added a loop b/c the one sheet I copy changes 13 times and creates 13 slides in presentation. ActiveCell.Offset(0, 1).Select Loop Here is where I want it to save. The loop is done, my 13 slides are created and I want to save presentation as powerpoint 2003 (.ppt). This VBA is saved in Excel 2007 if that matters. End Sub I appreciate any help I can get. I have spun my wheels for over 10 hours.
Is this what you are looking for? [vba]oPres.SaveAs filepath, ppSaveAsPresentation[/vba] oPres = the presentation you are saving (Application.ActivePresentation if you are saving the current file) filePath = the full path (with filename) that you are saving the file to. example: [vba]application.ActivePresentation.SaveAs "C:\Documents and Settings\MyName\My Documents\Test.ppt", ppSaveAsPresentation [/vba]
Cosmo, I don't have any test materials, but since it's an Excel 2007 macro that's running, wouldn't Application in [vba] application.ActivePresentation.SaveAs [/vba] apply to Excel? cmoore -- how are you opening PP, manually or is your Excel macro using CreateObject? Paul
The only thing I have open is an Excel document and the VBA opens a powerpoint presentation then copies my sheet as a picture into a new slide (there are 13 variations to this one sheet = 13 slides). When I use the above .SaveAs I get this message: Run-time error '438': Object doesn't support this property or method I have googled this error but do not understand how to fix it.
Sorry, Hadn't read that you were coming from Excel. You won't be able to use 'ppSaveAsPresentation' or 'application.activepresentation', but you should be able to Do you have a reference to the PowerPoint application in your excel document? Assuming that you do, and it's named "PPTApp", would this work: [VBA] PPTApp.SaveAs filepath, 1 [/VBA]
This now gives me the error message - Compile error: Method or data memeber not found. And it highlights the word SaveAs in your post. I really appreciate your assistance...I think we are getting closer.
Originally Posted by cmoore3984 This now gives me the error message - Compile error: Method or data memeber not found. And it highlights the word SaveAs in your post. I really appreciate your assistance...I think we are getting closer.
Sorry about the blank posting, having problems with this forum; it didn't post my message properly, and won't let me edit it. My previous code should have been: [VBA] PPTApp.ActivePresentation.SaveAs filepath, 1 [/VBA]

Final outcome - Creating a VBA to save Presentation in Excel

It worked! Thank you so much for your help! It worked and I can finally close this portion of the project. PPTApp.ActivePresentation.SaveAs filepath, 1
Originally Posted by Cosmo example: [vba]application.ActivePresentation.SaveAs "C:\Documents and Settings\MyName\My Documents\Test.ppt", ppSaveAsPresentation [/vba] Hey Cosmo!! Can you tell me if there's a way to directly save the presentation as a macro enabled one? (using ppSaveAsPresentation saves it in .ppt format)
PowerPoint.Application.ActivePresentation.SaveAs _ "C:\Documents and Settings\MyName\My Documents\Test.ppt m ", ppSaveAsOpenXMLPresentationMacroEnabled Should do it.
John Wilson Microsoft PowerPoint MVP Amazing Free PowerPoint Tutorials http://www.pptalchemy.co.uk/powerpoi...tutorials.html
Can you tell me if there's a way to directly save the presentation as a macro enabled one? (using ppSaveAsPresentation saves it in .ppt format) [QUOTE][ Here is where I want it to save. The loop is done, my 13 slides are created and I want to save presentation as powerpoint 2003 (.ppt). /QUOTE] 2003 or 2007 macro enabled presentation? I don't know if there's any difference in PP, but Excel has a whole bunch of options to save in earlier versions Paul
Macro enabled presentations don't exist in 2003 Paul. It was introduced in 2007.
Last edited by John Wilson; 03-13-2014 at 12:47 AM .
Post dates, Paul, Post dates.
I expect the student to do their homework and find all the errrors I leeve in. Please take the time to read the Forum FAQ
  • Private Messages
  • Subscriptions
  • Who's Online
  • Search Forums
  • Forums Home
  • Announcements
  • Introductions
  • How to Get Help
  • Non English Help
  • Access Help
  • SUMPRODUCT And Other Array Functions
  • Outlook Help
  • Office 2007 Ribbon UI
  • Integration/Automation of Office Applications Help
  • Other Applications Help
  • Project Assistance
  • Testing Area
  • Mac VBA Help
  • Other Mac Issues
  • Book Reviews

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules

  • VBA Express
  • Privacy Statement

MrExcel Message Board

  • Search forums
  • Board Rules

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

  • If you would like to post, please check out the MrExcel Message Board FAQ and register here . If you forgot your password, you can reset your password .
  • Question Forums
  • Excel Questions

VBA Code to Open and Save a PowerPoint File using an Excel cell value

  • Thread starter sirbudan82
  • Start date Nov 16, 2017
  • Tags excel file mypresentation opening path
  • Nov 16, 2017

I'm using a simple VBA code to open a PowerPoint file from an Excel file. Sub PPT() Dim myPresentation As Object Dim PowerPointApp As Object Set myPresentation = CreateObject("Powerpoint.application") myPresentation.presentations.Open "C:\Folder\Subfolder\F11_Blank.pptx" myPresentation.Visible = True myPresentation.SaveAs "C:\Folder\Subfolder\F11_Updated.pptx" End Sub For the moment I need to update the path of the file every time the folder name changes, I was wondering if there is a way to reference the path file to an Excel cell value and avoid opening the visual basic editor. Another option would be to browse the folder when opening and then to select the path when saving. Any help would be really appreciated, many thanks.  

Excel Facts

Kenneth Hobson

Kenneth Hobson

Well-known member.

Tip: Click the # icon on reply toolbar to insert code tags. Paste code between tags to keep structure. Code: Sub PPT() Dim myPresentation As Object, PowerPointApp As Object, p$ p = Worksheets(1).[A1] '"C:\Folder\Subfolder\ Set myPresentation = CreateObject("Powerpoint.application") myPresentation.presentations.Open p & "F11_Blank.pptx" myPresentation.Visible = True myPresentation.SaveAs p & "F11_Updated.pptx" End Sub  

Worked great, thank you.  

Similar threads

  • Peter Davison
  • Jan 30, 2024

KlausW

  • noobslayer252
  • Jan 11, 2024
  • davidalldred
  • Nov 15, 2023
  • Jan 26, 2024

Forum statistics

Share this page.

save powerpoint presentation vba

We've detected that you are using an adblocker.

Which adblocker are you using.

AdBlock

Disable AdBlock

save powerpoint presentation vba

Disable AdBlock Plus

save powerpoint presentation vba

Disable uBlock Origin

save powerpoint presentation vba

Disable uBlock

save powerpoint presentation vba

PowerPoint VBA To Save Presentation As A PDF In Same Folder

Create PDF From PowerPoint File With VBA Macro Coding

What This VBA Code Does

The business world has increasingly become more reliant on mobile computing with devices such as tablets and smartphones becoming mainstream. This, in turn, has provided an elevated demand for analysts to turn spreadsheets into PDF documents so management can view your reports on the go. 

Below is a simple VBA macro that will allow you to quickly turn your current PowerPoint presentation into a PDF file in a snap. The code is written to save your PDF in the same folder as the PowerPoint file currently resides. If you need to make modifications, hopefully, you will be able to follow along with my code comments and customize the code to your specific needs.

Function To Validate Save File Name

Below is a function that you will need to paste in along with the above macro. The VBA function provides a way of testing any file name your users provide to save the PDF document as.

Same Macro Functionality For Other Office Applications

Upon request, I have made similar macros for other Office Applications you may use on a regular basis to convert their files into PDF documents. The links to those specific posts are as follows:

Microsoft Excel Version

Microsoft Word Version

Using VBA Code Found On The Internet

Now that you’ve found some VBA code that could potentially solve your Excel automation problem, what do you do with it? If you don’t necessarily want to learn how to code VBA and are just looking for the fastest way to implement this code into your spreadsheet, I wrote an article (with video) that explains how to get the VBA code you’ve found running on your spreadsheet.

Getting Started Automating Excel

Are you new to VBA and not sure where to begin? Check out my quickstart guide to learning VBA . This article won’t overwhelm you with fancy coding jargon, as it provides you with a simplistic and straightforward approach to the basic things I wish I knew when trying to teach myself how to automate tasks in Excel with VBA Macros.

Also, if you haven’t checked out Excel’s latest automation feature called Power Query , I have put together a beginner’s guide for automating with Excel’s Power Query feature as well! This little-known built-in Excel feature allows you to merge and clean data automatically with little to no coding!

How Do I Modify This To Fit My Specific Needs?

Chances are this post did not give you the exact answer you were looking for. We all have different situations and it's impossible to account for every particular need one might have. That's why I want to share with you:  My Guide to Getting the Solution to your Problems FAST!  In this article, I explain the best strategies I have come up with over the years to get quick answers to complex problems in Excel, PowerPoint, VBA,  you name it ! 

I highly recommend that you check this guide  out before asking me or anyone else in the comments section to solve your specific problem. I can guarantee that 9 times out of 10, one of my strategies will get you the answer(s) you are needing faster than it will take me to get back to you with a possible solution. I try my best to help everyone out, but sometimes I don't have time to fit everyone's questions in (there never seem to be quite enough hours in the day!).

I wish you the best of luck and I hope this tutorial gets you heading in the right direction!

After 10+ years of creating macros and developing add-ins, I've compiled all the hacks I wish I had known years ago!

Hidden Hacks For VBA Macro Coding

Keep Learning

Microsoft Word VBA To Save Document As A PDF In Same Folder

Microsoft Word VBA To Save Document As A PDF In Same Folder

What This VBA Macro Code Does The business world has increasingly become more reliant on mobile computing with devices such as...

Copy Each Excel Tab To Individual File or PDF (In Seconds!)

Copy Each Excel Tab To Individual File or PDF (In Seconds!)

Splitting Up Your Excel Sheets If you’ve come across this article, chances are you are looking for a solution that...

VBA To Quickly Save As PDF Document From Selected Excel Worksheets

VBA To Quickly Save As PDF Document From Selected Excel Worksheets

What This VBA Macro Code Does The business world has increasingly become more reliant on mobile computing with devices such as...

Chris Newman

Chris Newman

Chris is a finance professional and Excel MVP recognized by Microsoft since 2016. With his expertise, he founded TheSpreadsheetGuru blog to help fellow Excel users, where he shares his vast creative solutions & expertise. In addition, he has developed over 7 widely-used Excel Add-ins that have been embraced by individuals and companies worldwide.

Site logo white shadow

Home » Microsoft PowerPoint » How to use ChatGPT to create a PowerPoint Addin in VBA

How to use ChatGPT to create a PowerPoint Addin in VBA

  • April 5, 2024
  • Assorted , Concepts , Dr Nitin , Microsoft PowerPoint

Learn how ChatGPT can write great code using VBA – in this case, for PowerPoint. I created the code to remove unused layouts from a presentation. Learn how prompts were used, refined and iterated.

See the entire ChatGPT conversation here

Download and use the PowerPoint add in

Related videos.

Remove Unused Layouts Add-in

Copilot Quick Start

PowerPoint Masters and Layouts

Queries | Comments | Suggestions | Wish list Cancel reply

Subscribe to blog.

Email Address

Popular articles

  • How to customize annoying Teams Notifications
  • Conduct meetings with two monitors
  • Teams Live Events Dos and Don’ts
  • Conducting Online Conferences using Teams
  • Training Vs Adoption
  • Who can see my OneDrive files
  • Reduce eyestrain using Dark Mode

1100+ in-depth blog articles

Pivot table pro course.

Yes. You use Pivot Tables everyday. Now it is time to find out the real power and nuances. 5.5 hours video, exercises, samples, Q&A.

save powerpoint presentation vba

Excel to Power BI Course

Learn Power BI using the concepts you already know in Excel. Fast transition, in-depth coverage and immediately usable.

Excel Power BI Course Poster

IMAGES

  1. VBA PowerPoint

    save powerpoint presentation vba

  2. How to use VBA in PowerPoint: A beginner's guide

    save powerpoint presentation vba

  3. VBA PowerPoint

    save powerpoint presentation vba

  4. How to use VBA in PowerPoint: A beginner's guide

    save powerpoint presentation vba

  5. How to use VBA in PowerPoint: A beginner's guide

    save powerpoint presentation vba

  6. How to use VBA in PowerPoint: A beginner's guide

    save powerpoint presentation vba

VIDEO

  1. How To Create PowerPoint Presentation Using ChatGPT WITHOUT Running VBA Code

  2. Powerful Presentations in Minutes: ChatGPT + VBA Quick Tips!

  3. Présentation VBA

  4. How to save PowerPoint Presentation to pdf format

  5. How to Save PowerPoint Presentation as Read Only

  6. ChatGPT எப்படி More Productive aa Use பன்னுவது ? Part-1

COMMENTS

  1. Presentation.SaveAs method (PowerPoint)

    Parameters. Specifies the name to save the file under. If you don't include a full path, PowerPoint saves the file in the current folder. Specifies the saved file format. If this argument is omitted, the file is saved in the default file format ( ppSaveAsDefault ). Specifies whether PowerPoint embeds TrueType fonts in the saved presentation.

  2. Presentation.Save method (PowerPoint)

    In this article. Saves the specified presentation. Syntax. expression.Save. expression A variable that represents a Presentation object.. Remarks. Use the SaveAs method to save a presentation that has not been previously saved. To determine whether a presentation has been saved, test for a nonempty value for the FullName or Path property. If a document that has the same name as the specified ...

  3. Saving a PowerPoint in Excel VBA

    Set ppApp = CreateObject("Powerpoint.Application") ppApp.Visible = True. 'Create a new presentation (or you can access an existing file with ppApp.Presentations.Open. Set ppPres = ppApp.Presentations.Add. 'Save: ppPres.SaveAs fileNameString, 1. 'Quit the instance of PPT that you initiated above.

  4. PowerPoint VBA Macro Examples & Tutorial

    This is a simple example of a PowerPoint VBA Macro: Sub SavePresentationAsPDF () Dim pptName As String Dim PDFName As String ' Save PowerPoint as PDF. pptName = ActivePresentation.FullName. ' Replace PowerPoint file extension in the name to PDF. PDFName = Left (pptName, InStr (pptName, ".")) & "pdf".

  5. Complete VBA tutorial to interact with Power point Presentations

    Save & Close PowerPoint Through Excel VBA. Let's have a look - on how to save and close a power point presentation using Excel VBA..Save and .Close is the keywords to save and close a presentation respectively. These methods belongs to Presentation Object.

  6. How to use VBA in PowerPoint: A beginner's guide

    Getting to meet your VBA friend is very simple. With PowerPoint open and at least one presentation file open, press Alt+F11* on your keyboard. This will open the VBE (Visual Basic Editor): *If for some reason Alt+F11 isn't mapped on your keyboard you can right click anywhere on the ribbon, select Customize the Ribbon… and in the window that ...

  7. Save a presentation that contains VBA macros

    A presentation that contains VBA macros must be saved with a different file-name extension than a regular presentation file (such as .pptx, .potx, or .ppsx) that has no macros in it. To save a presentation that contains VBA macros, do the following: Click the File tab, and then click Save As. In the Save as type list, select one of the following:

  8. PowerPoint VBA Code: Export Slides to Single Slide Presentations

    Once you have placed this code in the VBA editor, close the window to get back to your PowerPoint window. Before you proceed further, it's a great idea to save your file. Be sure to save as a PowerPoint Macro-Enabled Presentation with the PPTM file extension. If you save as any of the other file formats, PowerPoint will offer to remove the ...

  9. Solved: Creating a VBA to save presentation

    oPres = the presentation you are saving (Application.ActivePresentation if you are saving the current file) filePath = the full path (with filename) that you are saving the file to. example: [vba]application.ActivePresentation.SaveAs "C:\Documents and Settings\MyName\My Documents\Test.ppt", ppSaveAsPresentation.

  10. VBA Code to Open and Save a PowerPoint File using an Excel cell value

    I'm using a simple VBA code to open a PowerPoint file from an Excel file. Sub PPT () Dim myPresentation As Object. Dim PowerPointApp As Object. Set myPresentation = CreateObject ("Powerpoint.application") myPresentation.presentations.Open "C:\Folder\Subfolder\F11_Blank.pptx". myPresentation.Visible = True.

  11. PowerPoint VBA To Save Presentation As A PDF In Same Folder

    A simple VBA macro that will allow you to quickly turn your current PowerPoint presentation into a PDF file in a snap. The code is written to save your PDF in the same folder as the PowerPoint file currently resides. If you need to make modifications, hopefully, you will be able to follow along with my code comments and customize the code to your specific needs.

  12. How to use ChatGPT to create a PowerPoint Addin in VBA

    April 5, 2024. Assorted, Concepts, Dr Nitin, Microsoft PowerPoint. Learn how ChatGPT can write great code using VBA - in this case, for PowerPoint. I created the code to remove unused layouts from a presentation. Learn how prompts were used, refined and iterated. See the entire ChatGPT conversation here.

  13. VBA PowerPoint unable to save presentation

    VBA PowerPoint unable to save presentation. Ask Question Asked 7 years, 3 months ago. Modified 7 years, 3 months ago. Viewed 1k times 0 I'm trying to pull together a marco that add data and charts from Excel into a powerpoint template and save it in a directory. The macro is being run from Excel.

  14. Open a PowerPoint presentation from Excel with VBA and then set that

    I have to post a lot of Excel charts to a specific PowerPoint document and I'm building out a macro in Excel VBA to do it for me. I'm able to correctly open the PowerPoint presentation that I want to update, however I don't know how to set the presentation I just opened to a variable called MyPresentation.. Dim myPresentation As PowerPoint.Presentation Dim PowerPointApp As PowerPoint ...