K
Keith
Hello,
I have a Powerpoint slide with four button controls. I’m trying to set up a
slide to demonstrate an elusive idea. When the slide is presented, the
viewer sees button 1. When the cursor hovers over button 1 it disappears and
button 2 appears, when the cursor hovers over button 2, it disappears and
button 3 appears, and so on with button 4, and back to button 1. I tried the
code shown below for buttons 1 through 4. It seems they should work if the
first function “my_start_up_function()†were to run when the slide is
displayed. Well, it doesn’t work. How can I accomplish this task?
Thank you
Private Sub my_start_up_function()
CommandButton1.Visible = True
CommandButton2.Visible = False
CommandButton3.Visible = False
CommandButton4.Visible = False
End Sub
Private Sub CommandButton1_GotFocus()
CommandButton1.Visible = False
CommandButton2.Visible = True
End Sub
Private Sub CommandButton2_GotFocus()
CommandButton2.Visible = False
CommandButton3.Visible = True
End Sub
Private Sub CommandButton3_GotFocus()
CommandButton3.Visible = False
CommandButton4.Visible = True
End Sub
Private Sub CommandButton4_GotFocus()
CommandButton4.Visible = False
CommandButton1.Visible = True
End Sub
I have a Powerpoint slide with four button controls. I’m trying to set up a
slide to demonstrate an elusive idea. When the slide is presented, the
viewer sees button 1. When the cursor hovers over button 1 it disappears and
button 2 appears, when the cursor hovers over button 2, it disappears and
button 3 appears, and so on with button 4, and back to button 1. I tried the
code shown below for buttons 1 through 4. It seems they should work if the
first function “my_start_up_function()†were to run when the slide is
displayed. Well, it doesn’t work. How can I accomplish this task?
Thank you
Private Sub my_start_up_function()
CommandButton1.Visible = True
CommandButton2.Visible = False
CommandButton3.Visible = False
CommandButton4.Visible = False
End Sub
Private Sub CommandButton1_GotFocus()
CommandButton1.Visible = False
CommandButton2.Visible = True
End Sub
Private Sub CommandButton2_GotFocus()
CommandButton2.Visible = False
CommandButton3.Visible = True
End Sub
Private Sub CommandButton3_GotFocus()
CommandButton3.Visible = False
CommandButton4.Visible = True
End Sub
Private Sub CommandButton4_GotFocus()
CommandButton4.Visible = False
CommandButton1.Visible = True
End Sub