Questions tagged [powerpoint]

PowerPoint is a Windows and Macintosh presentation program produced by Microsoft. It is primarily used to create presentations for projection. Due to the flexible nature of its canvas, it is also used for animation, e-learning, web broadcasting, business reporting and kiosk applications.

Amongst the standard Microsoft Office applications (Word, Excel, Outlook, Access and PowerPoint), PowerPoint is the least-developed against and for product. Technologies used to develop for and against PowerPoint:

  1. Visual Basic for Application (aka VBA)
  2. Visual Studio Tools for Office (aka VSTO)
  3. Visual Studio (Interop)
  4. Open Office XML (aka OOXML, OpenXML)

Other technologies such as PHP, Java and Perl have also been used to develop solutions for PowerPoint.

Relevant tags on Stack Overflow for PowerPoint programming:


Quick start powerpoint 2016

PowerPoint Quick Start

7041 questions
1
vote
1 answer

Retain variable value in a code run for next code run

I need to edit/crop sets of pictures in a slide. I want a system where I display one picture, edit it, then run a macro to "hide" the picture and display the next picture of the set. I renamed the pictures with this format: "Photo 1", "Photo 2",…
1
vote
2 answers

perl Win32::OLE ExportAsFixedFormat syntax for powerpoint

I have trouble using perl (strawberry) and win32::ole using powerpoint (from office2010) to convert ppt(x) to pdf. I can export to jpgs fine with Export function but the function ExportAsFixedFormat has a quite obscure syntax and alwawys gives me…
golemwashere
  • 159
  • 1
  • 7
1
vote
2 answers

Delete all empty/unsed shapes from a presentation

I've written the code to loop through a presentation's slides and then through it's shapes. If things are empty or invisible, I delete them. However it's not delete all emply plave holders. It will do it on a second or third run. Sub…
1
vote
1 answer

PowerPoint.createPresentation internal error when file is fetched from url

I tried following the example to open existing Presentation given here in the documentation for testing. It works fine when the supplied presentation file is from local disk. So now I want to open a Presentation file which is fetched from url. But…
1
vote
2 answers

Powerpoint VBA Macro to send only Rectangles to back

I'm trying to create a macro that can send to back the "Rectangle" shapes in my current selection (which can have either Rectangle shapes or Pictures). I was trying to create one with an "IF" condition that checks if the shape is a picture or not,…
1
vote
1 answer

Reorder Slides via Excel VBA

I have a slide deck that I would like to reorder, based on user-defined position defined in a column within excel. The table would look something like this: Title Group Year Slide # TestA GroupA 2010 1 Test B GroupB 2011 2 Test…
2020db9
  • 153
  • 1
  • 9
1
vote
1 answer

PowerPoint VBA Hangs Opening Corrupt File

I have written a routine in PowerPoint VBA to search all pptx files in a selected folder and its subfolders to tally how many slides use each CustomLayout. It is actually working correctly except when it finds a pptx that, if I open it normally,…
KurtisT
  • 81
  • 1
  • 7
1
vote
1 answer

how to stop & start mp4 in Powerpoint c# vsto

I am able to add MP4 video on PowerPoint slide , and I want to play programmatically and once it finished playing its need to move next slide automatically and another video start in next slide . var shape =…
At Work
  • 29
  • 2
1
vote
1 answer

In my PowerPoint VSTO Add-In (VisualBasic) Application.ActivePresentation returns an invalid presentation

I made an PowerPoint VSTO Add-In with VisualBasic in Visual Studio with which I want to be able to copy all slides of a presentation and paste them with their original formatting into my currently active presentation. However it does not quite well…
Joel
  • 721
  • 1
  • 13
1
vote
1 answer

PowerPoint Add-In add html iFrame to slide

I want to create an Add-In where I can set an URL via textbox and by clicking the apply button the iframe gets added to a new slide at the end of the presentation. I could add an iFrame with content app but unfortunatelly it is not working with…
1
vote
3 answers

OfficeJS Extracting all shape from every slide of a PowerPoint document

We want to extract all shape of an opened PowerPoint document from an add-in. We haven't found much documentation on how to use the API for PowerPoint specifically (this is all we found). We did able to get the selected shape data from the slide…
1
vote
0 answers

convert ppt to pdf python 3.9 macos

How can I convert ppt file to pdf file, my os is macos and I use python 3.9. import os import sys import ppt2pdf.main as pp if __name__ == "__main__": dir_path = os.path.dirname(sys.argv[0]) input_file_path = dir_path + "/myppt.pptx" …
agile
  • 77
  • 5
1
vote
3 answers

Reference middle-tier grouping (group of groups of groups) of shapes in Ppt VBA

I have written some code for a custom ribbon button that inserts groups of shapes, and then groups the groups. To be able to do this more than once on the same slide, the shape names need to be renamed (or else a subsequent press of the button gets…
JakeyG
  • 100
  • 11
1
vote
2 answers

VSTO Add-in for Powerpoint to make Presentation Read-Only and Stop Printing

I've been trying to write add-ins for MS Word, Excel, and PowerPoint so I could have some control over print, save, and open events. I have successfully done every part for word and excel but I can't find the right events and methods for…
1
vote
1 answer

How to change the text of the clicked button?

I'm trying to make a macro where it will change the text of the button that is clicked by the user. I already tried the oShape declaration mentioned in Microsoft's forum. Here's what I have: Sub changeLetter(oShape As Shape) If…