VBA to edit PowerPoint presentation

Dr. Demento

Well-known Member
Joined
Nov 2, 2010
Messages
618
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
First of all, if any one knows of a good PowerPoint VBA resource (coding in either from ppt or XL), I'd be very appreciative.

I apologize for not having any code, but I don't know where to start with this. Not even sure if all of this is possible, but you don't know until you ask, eh?

On a weekly basis, I prepare a number of workbooks, one of has linked charts to a powerpoint presentation (2010, .pptx).
From Excel, I would like to:
  1. Open .pptx file
  2. Update linked charts (6 have automatic updates, 2 have manual updates - this can be changed, if needed)
  3. Change a date listed in a text box listed on first slide
  4. Save file
  5. Edit all Links to Manual update (or Break link - either way)
  6. SaveAs backup with date (yyyymmdd) of .pptx
  7. Close original file without saving || Close backup if still open

I guess this could all be done in Powerpoint if necessary; the only stipulation is that the backup needs to be a .pptx format, not .pptm.

Thanks y'all!
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi Dr Demento,
what you want is definitely possible, I don't have all code present, but found some helpful links that might get you started:
https://msdn.microsoft.com/en-us/library/office/ee814734(v=office.14).aspx
Using Excel with Other Office Applications
As a start: there is no macro recorder in PowerPoint, but I would start coding there, as the objects are present there (in Excel I generally have a harder time finding the right elements).
Hope that gets you started, don't hesitate to post code here if you get stuck.
Cheers,
Koen
 
Upvote 0
Rijnsent,

Thank you for the sources and advice! I will see what kind of damage I can do and I'll be back!

Dr. D
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top