Relative Content

Tag Archive for vbapowerpoint

How to run VBA code in powerpoint if my slides are all autotransition

My powerpoint contains 5 slides. The first slide is just a coverpage with a textbox “Welcome to presentation”. It has audio speech. After the speech, it will auto transition to slide 2.
The slide 2 is a multiple choice question. It has a question with 4 choices. I use optionbutton (activex control) for the 4 choices. Only 1 selection can be made as there is only one correct answer among the the 4 choices. It will show you made the correct choice or not before it auto transit to slide 3.
The slide 3 is the same as slide 2 with a multiple question and auto transit after choice made.
The slide 4 is also the same as slide 2 and slide 3.
The slide 5, I want to display a text box with the total correct score out of 3.
I try to insert the code in slide 5 but it does not run. I think if the slides are manually click, the code will run.

I can’t use VBA in PowerPoint

I can’t use VBA in PowerPoint and I’ve tried looking for different ways to fix this and I can’t. VBA is unavailable for me to use.As you can see in the image, I cannot use any function of the program.

Powerpoint VBA Charts

I’m trying to get my code to change the chart style for all charts. I have managed this for tables but if I alter the code for charts it doesn’t work. Am I missing something? This is the code for tables that works and it seems to fall over as the Apply Style must use a different style for charts.

Powerpoint VBA Slide Rearranged Event

I’m trying to write a VBA macro for PowerPoint that updates a textbox based on the current section a slide is in. It was fairly straight forward to implement code that runs on the PresentationNewSlide event, however, I also want the code to run if the slide order is changed. The closest event I can find is SlideSelectionChanged, but that doesn’t seem like the right fit.