Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA
-
Upload
duncan-brewer -
Category
Documents
-
view
26 -
download
1
description
Transcript of Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA
![Page 1: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/1.jpg)
Welcome to Transforming PowerPoint:
Creating an Interactive Environment using VBA
• Log onto computer• Open Internet Explorer• URL - http://dtsdtechtraining.wikispaces.com• Open My Computer
– Go to Curriculum on dtsd files Drive (X:)– Wiscount folder– VBA PPT folder
![Page 2: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/2.jpg)
Transforming PowerPoint: Creating an Interactive Environment using VBA
DTSD C.A.R.A.T.S. Teacher TrainingMelanie Wiscount
![Page 3: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/3.jpg)
Transforming PowerPointCreating an Interactive Learning Environment
Some information in session is from:• PETE+C 2008 – February 10, 2008• Dr. P. David Lees
– Director, Instructional Technology & Distributed Learning• St. Joseph’s University
![Page 4: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/4.jpg)
Objective • 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
![Page 5: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/5.jpg)
What 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
![Page 6: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/6.jpg)
What 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
![Page 7: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/7.jpg)
What 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)
![Page 8: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/8.jpg)
What is VBA?
• Visual Basic for applications• Application edition of Microsoft's Visual
Basic programming language
![Page 9: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/9.jpg)
What 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
![Page 10: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/10.jpg)
What 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
![Page 11: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/11.jpg)
How to Use Interactive Presentations in the
Classroom• Present Content in an interactive way
– Teacher to Audience • Student Interaction Creation
– Teacher to Student• Student Assessment
– Type on Slides– Quizzes– Interactive activities– Application of knowledge
• Student to Audience
![Page 12: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/12.jpg)
PowerPoint + VBA
• Ask and evaluate questions• Evaluate questions• Track responses• Store information• Provide feedback• Generate reports
![Page 13: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/13.jpg)
Ready to Start
Let’s create Interactive PowerPoint Presentations
using VBA!• Open PowerPoint
• Start a New Presentation
• Save As VBA_PPT and save on Desktop
![Page 14: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/14.jpg)
Visual Basic Application (VBA)
1. Design Form (Control Toolbox)
2. Set Properties (Properties)
3. Create Code (Visual Basic Editor)
![Page 15: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/15.jpg)
Getting Started
• Controlling Navigation– Turning on Kiosk Mode
• Enabling Macros– Changing Security Setting
![Page 16: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/16.jpg)
Kiosk Mode
• Controls navigation• Viewers/Students navigate through
Buttons and Hyperlinks• Only automatic animations will work• Save presentation as a PowerPoint
Show - .pps
![Page 17: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/17.jpg)
Kiosk Mode
1. Slide Show Menu2. Select Set-up Show
• Click “Browsed at a Kiosk (full screen)” & OK
1
2
![Page 18: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/18.jpg)
Security Settings – Change Macro Settings
1. Tools Menu2. Options
• Macro Security Button• Choose Level – Medium or Low
1
2
![Page 19: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/19.jpg)
ActiveX Controls
Fun with the Control ToolBox
![Page 20: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/20.jpg)
Active X Control Toolbar
• View• Toolbars• Control ToolBox
![Page 21: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/21.jpg)
Active X Control ToolbarView Code Textbox
OptionButton
ComboBox
SpinButton
LabelMore
Controls
Properties CheckBox
CommandButton
ListBox
ToggleButton
ScrollBar
Image
![Page 22: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/22.jpg)
Type On SlidesGreat Assessment Tool!
How to Create a “Type-On” Slide
Recording Responses during a Live Presentation
![Page 23: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/23.jpg)
Type on Slides
• Add a picture• Add textboxes to label parts of the picture
![Page 24: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/24.jpg)
Type 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
![Page 25: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/25.jpg)
Type on Slides
1. Draw Textbox Control
2. Click on Properties Control
![Page 26: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/26.jpg)
Type on Slides
1. Select True in Properties for EnterKeyBehavior and Multiline
Textbox
Control
![Page 27: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/27.jpg)
Type 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?
![Page 28: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/28.jpg)
Type on Slides1. Change the following
properties:• Back color• Font
• Fore Color• Text Align
In 2007, what was the special anniversary Hersheypark celebrated?
![Page 29: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/29.jpg)
Type on Slides
![Page 30: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/30.jpg)
Type on Slides
1. 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
![Page 31: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/31.jpg)
Type on Slides
To add actions to the ActiveX controls:1. Double-click the command button control
to display the Visual Basic Editor2. Set a reference to the Microsoft Scripting
Runtime– On the Tools menu, click References, and
then select the Microsoft Scripting Runtime check box
![Page 32: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/32.jpg)
Type 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
![Page 33: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/33.jpg)
Type 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
![Page 34: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/34.jpg)
VBA Scripting
![Page 35: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/35.jpg)
Screen Shot of Visual Basic Editor
![Page 36: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/36.jpg)
Visual Basic for Applications
• Object-Oriented Programming (OOP)– Classes = Types of Things– Objects = Specific Things– Methods = What You Do With Things
![Page 37: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/37.jpg)
Class -> Object -> Method
Cars = Class of ThingToyota Corolla = Specific Object in Class
Driving in my car = Specific method to do with my car
![Page 38: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/38.jpg)
VB Keywords
• Sub = Subroutine• Dim = Declared Variable• Variable Types
– String– Boolean (True or False values)
• ‘ before a comment (turns green)
![Page 39: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/39.jpg)
Good 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
![Page 40: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/40.jpg)
40
Convert 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 CorollamyCar.Drive (“Hershey”)
Setting Variables
![Page 41: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/41.jpg)
Macros
• An action or a set of actions you can use to automate tasks.
• Macros are recorded in the VBA code
![Page 42: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/42.jpg)
VBA –Message Box
• Hold Alt and F11• Insert Module – If not there• Type
Sub SayHello()MsgBox (“Hello”)
End sub – (Will Appear Automatically)• Run Script
• Run Menu
![Page 43: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/43.jpg)
Add 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
![Page 44: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/44.jpg)
VBA –Input Box
• Hold Alt and F11• Insert Module – If not there Type
Sub YourName() userName = InputBox(Prompt:="Type your name", _ Title:="Input Name")End Sub
• Run Script• Run Menu
![Page 45: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/45.jpg)
Quiz
• See Examples• Create your own Quiz with:
– Interactivity– Feedback– Results– Print Report
![Page 46: Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA](https://reader036.fdocuments.us/reader036/viewer/2022062308/56812dbc550346895d92f843/html5/thumbnails/46.jpg)
Any Questions?
Thank you!!!