powerpoint-vba

EXcel VBA : Excel Macro to create table in a PowerPoint

Hi friends, My requirement is I have a Excel which contains some data. I would like to select some data from the excel and open a PowerPoint file and Create Table in PowerPoint and populate the data in to it Right now I have succeeded in collecting the data from excel opening a PowerPoint file through Excel VBA Code. Code for Openin...

How do I get Powerpoint to call my VBA subroutine in an animation???

What I ultimately want to do is ShellExecute() a command-line program every time a new slide appears in my PowerPoint slide show. I'm using Office 2003 PowerPoint. I did the following: Tools > Options > Security Options > Macro Security > Security Level = Medium Tools > Options > Macro > VBA Editor: Sub OnSlideShowPageChange(ByVal SS...

accessing SmartArt shapes when the SmartArt is inside a Placeholder (powerpoint 2007)

I need to go through each shape of a smart-art in PowerPoint 2007. When shape.Type=msoSmartArt then I could simply go through the shapes in shape.GroupItems. However, when shape.Type == msoPlaceholder && shape.PlaceholderFormat.ContainedType==msoSmartArt then shape.GroupItems is empty. How can I access the smart-art shapes in such a cas...

Powerpoint - Getting the original Shape from inside a Placeholder (programatically)

I'll give an example with a SmartArt Shape, but it could be asked about other shapes too. When I go over Slide.Shapes, one of the Shapes has: Shape.Type=msoPlaceholder and Shape.PlaceholderFormat.ContainedType=msoSmartArt Is there a way to get to the actual SmartArt Shape contained in the placeholder? Thanks, Arie ...

PowerPoint 2007 - Programatically insert data?

Hi, I know PowerPoint supports macros But is there a way I can insert data from a datasource into a placeholder or something? I've got a routine where I collect data from a database and store it in the registry. This data is then inserted into several Word templates. And this is working. But I can't find any bookmark support in PowerPoi...

Why doesn't my custom shape fill properly in PowerPoint?

I'm trying to create a number of AutoShapes in code (don't ask why...hehehe). I am using the parameters supplied by Open XML to re-create them and some are working okay, like creating a heart. In some cases, I can create the shape, but it doesn't fill properly. Here's the XML from DrawingML for a FoldedCorner shape: <foldedCorner> ...

Powerpoint 2007 - Inserting dynamic data

Hi, so I've found that Powerpoint 2007 has no bookmark functionality. So I can't just insert dynamic data into a presentation. Also, there are no autostart event handler, but I found a way of doing it by editing the XML data. This now works, I've got a custom event handler that is run as expected. Now, I tried to solve the no bookmark ...

PowerPoint 2007 - How to use Application.NewPresentation event handler?

Hi, so I've found that PowerPoint 2007 does indeed support event handlers on the Application level. For example Application.NewPresentation or even Application.AfterNewPresentation It's described here http://msdn.microsoft.com/en-us/library/ff745073.aspx But the real question is, how do I use these? Where do I use them? To tell you my ...

PowerPoint Programmatically open/play mediaobject in add-in

Hi I am working on a VSTO PowerPoint 2010 add-in which will allow the user to playback a media object (video or audio) in a windows form using windows media player control. In which way can I extract the embedded media object an play it back to the user? I have access to the objects name, will that be enough to get to the embedded ob...

Problem with toggling black screen option in Powerpoint 2010 through VBA

I'm trying to determine how to black/unblack a Powerpoint presentation using VBA. I modified a VBA Macro that I found online (http://my.safaribooksonline.com/9780470634004/670?bookview=search -- "Mastering VBA for Microsoft Office 2010; page 670") Sub Test1() With ActivePresentation.SlideShowWindow.View .State = ppSlideShow...

Get Normal Font Style in PowerPoint

I'm trying to check a presentation for the fonts that exist in it. This can be done with ActivePresentation.Fonts. I also want to check if the font is normal, bold and/or italic. Bold and Italic are easy, but Normal is not. For example, say I have two text boxes, one of them has "Hello World" in Arial Italic and another the same in Arial...