310 likes | 660 Views
Adapting a ready made PowerPoint quiz with VBA. Pam Miller. Security. The security must be set to Medium for the macros to work. Check Tools, Macro, Security . You should set it to Medium, then Save, Close, Open, Enable macros and then View. Opening a PowerPoint quiz made with VBA.
E N D
Security The security must be set to Medium for the macros to work. Check Tools, Macro, Security. You should set it to Medium, then Save, Close, Open, Enable macros and then View. Adapting a ready made PowerPoint quiz with VBA
Opening a PowerPoint quiz made with VBA You must enable the macro for the quiz to work. Adapting a ready made PowerPoint quiz with VBA
Now … • Look at a PowerPoint quiz made with VBA • Save the ‘perfect quiz’ in read-only safe place • Consider and change the testing file • Play and adapt Adapting a ready made PowerPoint quiz with VBA
Save as PPS If you save your work as a PowerPoint Show or PPS no one can get into the VBA coding and change it. File, Save as Adapting a ready made PowerPoint quiz with VBA
Attaching a macro … To an object To part of an object
Attaching a macro to an object Right click on the object. Select Action Settings, Mouse Click, Run macro, select macro. It must be an object and not text, i.e. it must be a text box/object. Adapting a ready made PowerPoint quiz with VBA
Attaching a macro to part of an object To attach a macro to part of an object, add a small object to the small area. Do it in colour, position it, add the macro and then adjust the settings removing the fill and the border. You could first attach a macro to the large ‘wrong’ area and then another macro for the small ‘correct’ area. Adapting a ready made PowerPoint quiz with VBA
VB Editor Getting VB Editor
Getting VB editor Click on View, Toolbars, Visual Basic. You need the Visual Basic Editor. Click on the Visual Basic Editor Now click on VBAProject, and then on Modules and then on Module 1 and the editing box appears. Adapting a ready made PowerPoint quiz with VBA
Getting VB editor another way Adapting a ready made PowerPoint quiz with VBA
Changing … Macro name Message Input box prompt Title for input box
Changing macro name You can change the macro name. It must be one word with no spaces. The name will change in the Run macro box. Adapting a ready made PowerPoint quiz with VBA
Changing the message You can change the message. Type it inside the quotation marks. Adapting a ready made PowerPoint quiz with VBA
Changing input box prompt You can change the prompt. Type it inside the quotation marks. Adapting a ready made PowerPoint quiz with VBA
Changing title for input box You can change the title of the input box. Type it inside the quotation marks. Adapting a ready made PowerPoint quiz with VBA
Calculations Done for you
Doing calculations – they have been done for you Look at how the calculations are added and subtracted. They are based on the number of positive and negative responses. If you do not want the quiz results do not attach the macro ‘Feedback’. Adapting a ready made PowerPoint quiz with VBA
Moving forward … Selecting the correct answer On click Not moving forward
Moving forward on instruction from macro Look at the coding where you indicate viewing the Next slide. Adapting a ready made PowerPoint quiz with VBA
Moving forward using action buttons Using an action button allows you to specify which slide you wish to link to. Adapting a ready made PowerPoint quiz with VBA
No moving forward at all To prevent any meaningless moving forward using a mouse or clicking, select Slide Show, Set Up Show, Browsed at kiosk. But if you do this no animation which needs a click will work, so if you have animations make them automatic. Adapting a ready made PowerPoint quiz with VBA
Displaying a message An easy effective macro is to show a message. Copy the coding. Adapting a ready made PowerPoint quiz with VBA
Displaying a message Be creative Adapting a ready made PowerPoint quiz with VBA
Be creative Be creative Be creative Adapting a ready made PowerPoint quiz with VBA