Home > Article > Software Tutorial > How to create fill-in-the-blank questions that can determine right and wrong in PPT2010_Detailed steps for creating fill-in-the-blank questions that can determine right and wrong in PPT2010
PPT2010 is a commonly used office software, and its powerful functions can meet a variety of needs. Among them, making fill-in-the-blank questions is a common application in PPT. However, if you need to make fill-in-the-blank questions that can determine whether it is right or wrong, how should you do it? PHP editor Xigua brings you the detailed steps for making correct and wrong fill-in-the-blank questions in PPT2010. Let’s learn together!
Create a blank slide document, and then use the text box tool to enter the content as shown.
You need to use development tools. If it is not displayed in the menu bar above, right-click on the blank space above the menu bar and select [Customize Ribbon].
In the dialog box that opens, check [Development Tools] and click OK.
After completion, [Development Tools] will appear in the menu bar above.
Click [Development Tools] and select [Text Box (ActiveX Control)] below.
Click the mouse above the horizontal line where you need to fill in the blanks to add this control.
Select this control, click [Properties] under [Development Tools], and the properties box on the left side of the picture below will pop up.
Set the special effect option to 0, and the selected control will become transparent, which is more natural.
Select the command button under [Development Tools] and draw two buttons at appropriate positions in the text.
First select the first button, find the caption option in the properties box, and change the subsequent name to [Submit]. Using the same method, change the second button to [Clear].
Select the submit button, right-click, select [View Code], and open it as shown in the picture.
Enter the following code:
If TextBox1 = 16 Then
MsgBox "Congratulations on the correct answer!", vbOKOnly, "Prompt"
Else
#MsgBox "Wrong answer, try again!", vbOKOnly, "Prompt"
End If
Use the same method again, select the Clear button, and add the code: TextBox1 = " "
Now you're done, play the slideshow and enter the answer. If the answer is correct, it will remind you that the answer is correct; if the answer is wrong, it will tell you that you are wrong.
The above is the detailed content of How to create fill-in-the-blank questions that can determine right and wrong in PPT2010_Detailed steps for creating fill-in-the-blank questions that can determine right and wrong in PPT2010. For more information, please follow other related articles on the PHP Chinese website!