How to Use a VBA ComboBox in PowerPoint

Written by jaime avelar
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Use a VBA ComboBox in PowerPoint
Switch slides using Visual Basic in PowerPoint. (Creatas Images/Creatas/Getty Images)

Adding a ComboBox control to your PowerPoint presentation can solve the problem of navigating through the slides in your presentation when you want to quickly show a slide toward the end. A ComboBox control can be used to display a list of items representing the slides in your presentation. Use Visual Basic for Applications (VBA) to add items to the ComboBox control and also execute events when an item has changed in your ComboBox.

Skill level:

Other People Are Reading


  1. 1

    Launch PowerPoint and click "New Slide" to display the Office Theme of slides. Click "Blank" to insert a blank slide. Insert another slide using the same technique.

  2. 2

    Click the "Developer" tab. Click "ComboBox" on the "Controls" pane and click a location on the slide where you want to place the ComboBox. Add a button using the same technique.

  3. 3

    Double-click the button to create a click event and add the following code to add two items to the ComboBox control:

    ComboBox1.AddItem ("Slide 2")

    ComboBox1.AddItem ("Slide 3")
  4. 4

    Switch back to PowerPoint and click slide number one from the left pane of your computer screen. Double-click the ComboBox control to create a change event for the control. Add the following code to switch slides by using the combo box:

    If (ComboBox1.Text = "Slide 2") Then

        With SlideShowWindows(1).View
            .GotoSlide 2
        End With
        With SlideShowWindows(1).View
            .GotoSlide 3
        End With
    End If
  5. 5

    Switch back to PowerPoint and click the "Slide Show" menu. Click "From Beginning" and click the command button to fill the ComboBox. Select a slide to go to from the ComboBox items list.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.