If ComboBox1 is No, go to slide 12

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone,

How on Powerpoint would I code a slide so if a combo box reads 'No' when the
user selects it, it goes to slide 12? Quite simple, but what would I do?

Thanks,

Tom
 
Thanks for the reply. Unfortunately, as my presentation contains over 1000
slides, that method wouldn't work, which is why I really need VB code!

Any ideas anyone?

Thanks for your help,
 
Hi everyone,

How on Powerpoint would I code a slide so if a combo box reads 'No' when the
user selects it, it goes to slide 12? Quite simple, but what would I do?

Thanks,

Tom

' use this to load the combo box with text:
Sub LoadIt()
With Me.ComboBox1
.AddItem ("Yes")
.AddItem ("Maybe")
.AddItem ("No")
End With

End Sub

' this will do the deed:
Private Sub ComboBox1_Change()
With Me.ComboBox1
If .Value = "No" Then
ActivePresentation.SlideShowWindow.View.GotoSlide (12)
Else

End If

End With
End Sub
 
Back
Top