If you are looking for software to use, go to Huajun Software Park! software release

PPT detailed tutorial on using VBA to create multiple-choice questions with command buttons

Author: dim sum Date: 2020-04-10

PowerPoint(PPT) 2016
PowerPoint(PPT) 2016-2016 official full version

Office software Storage: 4.62M Time: 2021-03-19

Software introduction: Powerpoint2016 is a professional presentation software. Powerpoint2016 has a wide range of applications and is becoming an essential part of people's work and life...

Download now

Some netizens have recently started using PPT software and said that they still do not know how to use VBA to create multiple-choice questions with command buttons. For this reason, today the editor has specially shared with you a detailed tutorial on using VBA to create multiple-choice questions with command buttons for PPT. , hope it can help friends in need.

1. Open PPT and add the "Development Tools" menu. Select "File" - "Options" - Customize the Ribbon - Select "Development Tools" - OK.

1.jpg

2. Create a blank slide in PPT, insert two text boxes, enter "Single-choice question exercise" and "Title: The most basic component of a web page is ( )", and set the font to Microsoft Yahei , 32 pounds.

2.jpg

3. Select the "Development Tools" tab, select "Option Button" in the "Controls" group, draw an option button on the slide, modify its Caption property to "Text and Pictures"; set the font in the Font property to Microsoft Yahei, Xiaoerhao.

3.jpg

4. Add two more option buttons in the same way, and change their Caption properties to "Hyperlink" and "Form" respectively.

4.jpg

5. Select "Command Button" in the "Controls" group, draw the command button on the slide, and modify its Caption property to "Reselect";

5.jpg

6. Insert two more "command buttons" and change their Caption properties to "Next question" and "View answer" respectively. The designed single-choice question interface is shown in the figure.

6.jpg

7. Before adding code, you need to pay attention to the names of the option buttons and command buttons. After selecting the button, you can view it in "Properties" and modify it. The names of the buttons in this example are as shown.

7.jpg

8. Add code, double-click the "Reselect" command button in the slide, and enter the code as shown in the code editing window.

8.jpg

9. Double-click the "Next Question" command button in the slide and enter the code as shown in the code editing window.

9.jpg

10. Double-click the "View Answer" command button in the slide and enter the code as shown in the code editing window.

10.jpg

11. Slides are stored in .pptm format.

Come and learn the detailed tutorial on how to use VBA to create multiple-choice questions with command buttons for PPT. It will definitely help everyone.

Related articles