Transforming PowerPoint: Creating an Interactive Environment using VBA DTSD C.A.R.A.T.S.. Objective • Create interactive presentations adding Visual Basic scripting and tools in Micros
Trang 1Creating an Interactive Environment
using VBA
• Log onto computer
• Open Internet Explorer
Trang 2Transforming PowerPoint: Creating an Interactive
Environment using VBA
DTSD C.A.R.A.T.S Teacher Training
Melanie Wiscount mwiscount@hershey.k12.pa.us
Trang 3Transforming PowerPoint Creating an Interactive Learning
Trang 4Objective
• Create interactive presentations
adding Visual Basic scripting and tools in Microsoft PowerPoint to:
– gather student input
– create quizzes
– turn PowerPoint into more than just
a presentation of information
Trang 5What is Presentation
Software?
• Create interactive presentations containing
text, art, animation, and audio and video elements
• Application program used to create
sequences of words and pictures
– Informative presentations
– Storytelling presentations
– Persuasive presentations
– Interactive presentations
Trang 6What is MS PowerPoint?
• A presentation program developed by
Microsoft
• Part of the Microsoft Office system
• Runs on Microsoft Windows and the Mac OS
computer operating systems
• Most commonly-used presentation software
• Easy to learn & relearn
Trang 7What is MS Visual Basic?
• An event driven programming language by
Microsoft
• Derived from BASIC
• Enables the RAD (Rapid Application Development)
– Of GUI (Graphical User Interface)
• Using:
– ActiveX controls (COM developed by Microsoft for
Windows platforms)
– VBA (present in Microsoft Office applications)
– VBScript (Visual Basic code object)
Trang 8What is VBA?
• Visual Basic for applications
• Application edition of Microsoft's Visual Basic
programming language
Trang 9What Are The Benefits Of Using
Presentations In The
Classroom?
• Appeals to our digital native students
• Introduces and reinforces content with
meaningful graphic support
• Create interactive presentations containing
text, art, animation, and audio and video
elements
Trang 10What Are The Benefits Of Using
Presentations In The Classroom?
• Present information or instruction to an entire class
• Create graphically enhanced information and
instructions for the learning centers
• Create tutorials, reviews, or quizzes for individual
students
• Display student work and curriculum materials or
accompany teacher presentations at parent open houses or technology fairs
Trang 11How to Use Interactive Presentations
Trang 13• Start a New Presentation
• Save As VBA_PPT and save on Desktop
Trang 14Visual Basic Application (VBA)
Trang 16Kiosk Mode
• Controls navigation
• Viewers/Students navigate through
Buttons and Hyperlinks
• Only automatic animations will work
• Save presentation as a PowerPoint
Show - pps
Trang 17Kiosk Mode
1 Slide Show Menu
2 Select Set-up Show
• Click “Browsed at a Kiosk (full screen)” & OK
1
2
Trang 18Security Settings – Change Macro Settings
1 Tools Menu
2 Options
• Macro Security Button
• Choose Level – Medium or Low
1
2
Trang 19ActiveX Controls
Fun with the Control ToolBox
Trang 20Active X Control Toolbar
• View
• Toolbars
• Control ToolBox
Trang 21Active X Control Toolbar
View
Code Textbox
Option Button
Combo Box
Spin Button Label
More Controls
Properties Check
Box
Command Button
List Box
Toggle Button
Scroll Bar Image
Trang 22Type On Slides
Great Assessment Tool!
How to Create a “Type-On” Slide Recording Responses during a
Live Presentation
Trang 23Type on Slides
• Add a picture
• Add textboxes to label parts of the picture
Trang 24Type on Slides
1 Draw Textbox Control beside each part to
identify
2 Click on Properties Control
Find a picture that you would like students to
identify parts/components and paste it to
a slide
Trang 25Type on Slides
1 Draw Textbox Control
2 Click on Properties Control
Trang 26Type on Slides
1 Select True in Properties for EnterKeyBehavior
and Multiline
Textbox Control
Trang 27Type on Slides
1 Click on Label control & draw over Textbox Control
2 Click on Properties & add text to Label Control Caption
property
In 2007, what was the special anniversary Hersheypark celebrated?
Trang 29Type on Slides
Trang 301 Click on Action Button & draw under Textbox Control
2 Click on Properties & change Back Color, Caption, Font,
Fore Color
In 2007, what was the special anniversary Hersheypark celebrated?
Submit
Trang 31Type on Slides
To add actions to the ActiveX controls:
1 Double-click the command button control
to display the Visual Basic Editor
2 Set a reference to the Microsoft Scripting
Runtime
– On the Tools menu, click References, and
then select the Microsoft Scripting Runtime check box
Trang 32Type on Slides
• Insert the code between "Private Sub
CommandButton1_Click()" and "End Sub“
– Copy and paste the code in the txt file
Type_On_Slide_VBA_Code
• Click on SAVE & Close Visual Editor
• Click on SAVE & Run the Show
• Take the quiz
• Look for results
Trang 33Type on Slides
• How to improve quiz?
– Add Name Label & Textbox controls
– Add option button questions
• Add label
– May “Copy & Paste”
– Add option button controls
– Edit properties
• Textbox - Select True in Properties for EnterKeyBehavior
and Multiline
– Edit code
Trang 34VBA Scripting
Trang 35Screen Shot of Visual Basic
Editor
Trang 36Visual Basic for Applications
• Object-Oriented Programming (OOP)
– Classes = Types of Things
– Objects = Specific Things
– Methods = What You Do With Things
Trang 37Class -> Object -> Method
Cars = Class of Thing Toyota Corolla = Specific Object in Class
Driving in my car = Specific method to do
with my car
Trang 38– Boolean (True or False values)
• ‘ before a comment ( turns green )
Trang 39Good Programming Practice
• Use LOTS of comments
– what your code does and why
• Comment each subroutine and function
with a description
– what it does
– what input and output it takes
Trang 40Convert to VBA
• myCar = Object of Class Cars
• myCar.Drive = Method/Action that can be done on
Object of Class Cars
• “Hershey” = the Argument for the Method – Where
I am driving to
Dim myCar as Corolla myCar.Drive (“Hershey”)
Setting Variables
Trang 42VBA –Message Box
• Hold Alt and F11
• Insert Module – If not there
Trang 43Add VBA Script to Button
Assign the Hello macro to an action
button
• Draw Button from AutoShapes – Action
Buttons
• From Action Settings Select Run Macro
• Right Click on Button and Select Add
Text
• Add text to Action Button
Trang 44VBA –Input Box
• Hold Alt and F11
• Insert Module – If not there Type
Trang 46Any Questions? Thank you!!!