adapting a ready made powerpoint quiz with vba pam miller

27
Adapting a ready made PowerPoint quiz with VBA Pam Miller

Upload: bethanie-hamilton

Post on 27-Dec-2015

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA

Pam Miller

Page 2: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 2

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.

Page 3: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 3

Opening a PowerPoint quiz made with VBA

You must enable the macro for the quiz to work.

Page 4: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 4

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

Page 5: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Protecting the coding

Page 6: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 6

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

Page 7: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Attaching a macro …

To an object

To part of an object

Page 8: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 8

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.

Page 9: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 9

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.

Page 10: Adapting a ready made PowerPoint quiz with VBA Pam Miller

VB Editor

Getting VB Editor

Page 11: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 11

Getting VB editorClick on View, Toolbars, Visual Basic. You need the Visual Basic Editor.Click on the Visual Basic EditorNow click on VBAProject, and then on Modules and then on Module 1 and the editing box appears.

Page 12: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 12

Getting VB editor another way

Page 13: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Changing …

Macro name

Message

Input box prompt

Title for input box

Page 14: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 14

Changing macro nameYou can change the macro name.

It must be one word with no spaces.

The name will change in the Run macro box.

Page 15: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 15

Changing the message

You can change the message.

Type it inside the quotation marks.

Page 16: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 16

Changing input box prompt

You can change the prompt. Type it inside the quotation marks.

Page 17: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 17

Changing title for input box

You can change the title of the input box.

Type it inside the quotation marks.

Page 18: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Calculations

Done for you

Page 19: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 19

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’.

Page 20: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Moving forward …

Selecting the correct answer

On click

Not moving forward

Page 21: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 21

Moving forward on instruction from macro

Look at the coding where you indicate viewing the Next slide.

Page 22: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 22

Moving forward using action buttons

Using an action button allows you to specify which slide you wish to link to.

Page 23: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 23

No moving forward at allTo 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.

Page 24: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Displaying message

Page 25: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 25

Displaying a message

An easy effective macro is to show a message. Copy the coding.

Page 26: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 26

Displaying a message

Be creative

Page 27: Adapting a ready made PowerPoint quiz with VBA Pam Miller

Adapting a ready made PowerPoint quiz with VBA 27

Be creative

Be creative