C
cotigchez
I am trying to create a password prompt for my computer science class
powerpoint. Such that the students cannot continue on untill they type in
the correct password. The code I'm using is the following:
Private Sub CommandButton1_Click()
If TextBox1.Text = "password" Then SlideShowWindows(Index:=1).View.Next
Else
MsgBox "Try Again", 16, "Incorrect Password"
End If
TextBox1.Text = ""
End Sub
Private Sub CommandButton2_Click()
End Sub
Private Sub TextBox1_Change()
End Sub
When I run the PPT any time my cursor moves into a form text box, MS Visual
Basic opens and I get the following error "Microsoft Visual Basic Compile
Error: Invalid Outside Procedures" with the following code:
ActiveWindow.Selection.ShapeRange(1).Name = "test23"
Private Sub TextBox1_Change()
End Sub
I don't know what to do!?? Help please!
powerpoint. Such that the students cannot continue on untill they type in
the correct password. The code I'm using is the following:
Private Sub CommandButton1_Click()
If TextBox1.Text = "password" Then SlideShowWindows(Index:=1).View.Next
Else
MsgBox "Try Again", 16, "Incorrect Password"
End If
TextBox1.Text = ""
End Sub
Private Sub CommandButton2_Click()
End Sub
Private Sub TextBox1_Change()
End Sub
When I run the PPT any time my cursor moves into a form text box, MS Visual
Basic opens and I get the following error "Microsoft Visual Basic Compile
Error: Invalid Outside Procedures" with the following code:
ActiveWindow.Selection.ShapeRange(1).Name = "test23"
Private Sub TextBox1_Change()
End Sub
I don't know what to do!?? Help please!