Escolar Documentos
Profissional Documentos
Cultura Documentos
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
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
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
Using:
ActiveX controls (COM developed by Microsoft for Windows platforms) VBA (present in Microsoft Office applications) VBScript (Visual Basic code object)
What is VBA?
Visual Basic for applications Application edition of Microsoft's Visual Basic programming language
Teacher to Audience
Teacher to Student Type on Slides Quizzes Interactive activities Application of knowledge
Student to Audience
Student Assessment
PowerPoint + VBA
Ask and evaluate questions Evaluate questions Track responses Store information Provide feedback Generate reports
1. Design Form (Control Toolbox) 2. Set Properties (Properties) 3. Create Code (Visual Basic Editor)
Getting Started
Controlling Navigation
Turning on Kiosk Mode
Enabling Macros
Changing Security Setting
Kiosk Mode
Controls navigation Viewers/Students navigate through Buttons and Hyperlinks Only automatic animations will work Save presentation as a PowerPoint Show - .pps
Kiosk Mode
ActiveX Controls
Fun with the Control ToolBox
Properties
List Box
Image
Type On Slides
Great Assessment Tool!
How to Create a Type-On Slide Recording Responses during a Live Presentation
Type on Slides
Add a picture Add textboxes to label parts of the picture
Type on Slides
Find a picture that you would like students to identify parts/components and paste it to a slide 1. Draw Textbox Control beside each part to identify
Type on Slides
1. Draw Textbox Control
Type on Slides
1. Select True in Properties for EnterKeyBehavior and Multiline
Textbox
Control
Type on Slides
1. Click on Label control & draw over Textbox Control
2.
Type on Slides
1. Change the following properties: Back color Font
Type on Slides
Type on Slides
1. Click on Action Button & draw under Textbox Control
2.
Click on Properties & change Back Color, Caption, Font, Fore Color
Submit
Type 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
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
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
VBA Scripting
VB Keywords
Sub = Subroutine Dim = Declared Variable Variable Types
String Boolean (True or False values)
Convert to VBA
Dim myCar as Corolla myCar.Drive (Hershey)
Setting Variables
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
40
Macros
An action or a set of actions you can use to automate tasks. Macros are recorded in the VBA code
Run Script
Run Menu
Run Script
Run Menu
Quiz
See Examples Create your own Quiz with:
Interactivity Feedback Results Print Report