K
kimkom
Hi all,
How do I change an image in a PPS depending on which item in a ListBox is
selected?
I've created my ListBox and populated it as such:
Sub AddItemsToSelectedListBox()
Dim oShape As Shape
Set oShape = ActiveWindow.Selection.ShapeRange(1)
With oShape.OLEFormat.Object
.Clear
.AddItem ("FORMATION 01")
.AddItem ("FORMATION 02")
.AddItem ("FORMATION 03")
.AddItem ("FORMATION 04")
.AddItem ("FORMATION 05")
End With
End Sub
I'm guessing I need a 'Private Sub ListBox1_change' handler?
Many thanks,
Michael
How do I change an image in a PPS depending on which item in a ListBox is
selected?
I've created my ListBox and populated it as such:
Sub AddItemsToSelectedListBox()
Dim oShape As Shape
Set oShape = ActiveWindow.Selection.ShapeRange(1)
With oShape.OLEFormat.Object
.Clear
.AddItem ("FORMATION 01")
.AddItem ("FORMATION 02")
.AddItem ("FORMATION 03")
.AddItem ("FORMATION 04")
.AddItem ("FORMATION 05")
End With
End Sub
I'm guessing I need a 'Private Sub ListBox1_change' handler?
Many thanks,
Michael