Originally Posted by
jaybeeb
Here is what I have so far, but am getting an error "Else without If"??
Does this look correct for what I want to do? Just trying to get something working now thats why I have them both set to false.
[vba]Public Sub populate()
mdlContentCombo.AddItem "IIW", 0
mdlContentCombo.AddItem "BDW", 1
End Sub
Private Sub okBtn_Click()
selection = mdlContentCombo.Value
If selection = O Then ActivePresentation.Slides(10).Shapes("Picture 4").Visible = False
Else
ActivePresentation.Slides(10).Shapes("Picture 4").Visible = False
End If
hide
End Sub[/vba]
You ned to change to this
[vba]
Public Sub populate()
mdlContentCombo.AddItem "IIW", 0
mdlContentCombo.AddItem "BDW", 1
End Sub
Private Sub okBtn_Click()
selection = mdlContentCombo.Value
If selection = O Then
ActivePresentation.Slides(10).Shapes("Picture 4").Visible = False
Else
ActivePresentation.Slides(10).Shapes("Picture 4").Visible = False
End If
hide
End Sub
[/vba]