Results 1 to 6 of 6

Thread: Need Help Fixing VBA Code for Comboboxes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,096
    Location
    Try this

    Sub OnSlideShowPageChange()
    Dim s As Integer
    s = ActivePresentation.SlideShowWindow.View.CurrentShowPosition
    If s <> 1 Then Exit Sub
    With ActivePresentation.Slides(4).Shapes("ComboBox1").OLEFormat.Object
        .Clear
        .AddItem "First"
        .AddItem "Second"
    End With
    End Sub
    Last edited by Aussiebear; 04-28-2023 at 08:31 PM. Reason: Adjusted the code tags
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •