1 / 46

Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA

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.

Download Presentation

Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Transforming PowerPoint: Creating an Interactive Environment using VBA DTSD C.A.R.A.T.S. Teacher Training Melanie Wiscount mwiscount@hershey.k12.pa.us

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

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

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

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

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

  8. What is VBA? • Visual Basic for applications • Application edition of Microsoft's Visual Basic programming language

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

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

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

  12. PowerPoint + VBA • Ask and evaluate questions • Evaluate questions • Track responses • Store information • Provide feedback • Generate reports

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

  14. Visual Basic Application (VBA) • Design Form (Control Toolbox) • Set Properties(Properties) • Create Code(Visual Basic Editor)

  15. Getting Started Controlling Navigation Turning on Kiosk Mode Enabling Macros Changing Security Setting

  16. Kiosk Mode Controls navigation Viewers/Students navigate through Buttons and Hyperlinks Only automatic animations will work Save presentation as a PowerPoint Show - .pps

  17. Kiosk Mode Slide Show Menu Select Set-up Show Click “Browsed at a Kiosk (full screen)” & OK 1 2

  18. Security Settings – Change Macro Settings Tools Menu Options Macro Security Button Choose Level – Medium or Low 1 2

  19. ActiveX Controls Fun with the Control ToolBox

  20. Active X Control Toolbar View Toolbars Control ToolBox

  21. Active X Control Toolbar View Code OptionButton ComboBox Spin Button Label More Controls Textbox Properties Check Box Command Button List Box Toggle Button Scroll Bar Image

  22. Type On Slides Great Assessment Tool! How to Create a “Type-On” Slide Recording Responses during a Live Presentation

  23. Type on Slides • Add a picture • Add textboxes to label parts of the picture

  24. Type on Slides Draw Textbox Control beside each part to identify Click on Properties Control Find a picture that you would like students to identify parts/components and paste it to a slide

  25. Type on Slides Draw Textbox Control Click on Properties Control

  26. Type on Slides Select True in Properties for EnterKeyBehavior and Multiline Textbox Control

  27. Type on Slides Click on Label control & draw over Textbox Control 2. Click on Properties & add text to Label Control Caption property

  28. Change the following properties: Back color Font Fore Color Text Align Type on Slides

  29. Type on Slides

  30. Type on Slides Click on Action Button & draw under Textbox Control 2. Click on Properties & change Back Color, Caption, Font, Fore Color

  31. Type on Slides To add actions to the ActiveX controls: • Double-click the command button control to display the Visual Basic Editor • Set a reference to the Microsoft Scripting Runtime • On the Tools menu, click References, and then select the Microsoft Scripting Runtime check box

  32. Type on Slides • Insert the code between "Private Sub CommandButton1_Click()" and "End Sub“ • Copy and paste the code in the .txt fileType_On_Slide_VBA_Code • Click on SAVE & Close Visual Editor • Click on SAVE & Run the Show • Take the quiz • Look for results

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

  34. VBA Scripting

  35. Screen Shot of Visual Basic Editor

  36. Visual Basic for Applications Object-Oriented Programming (OOP) Classes = Types of Things Objects = Specific Things Methods = What You Do With Things

  37. Class -> Object -> Method Toyota Corolla = Specific Object in Class Cars = Class of Thing Driving in my car = Specific method to do with my car

  38. VB Keywords Sub = Subroutine Dim = Declared Variable Variable Types String Boolean (True or False values) ‘before a comment (turns green)

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

  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 Corolla myCar.Drive (“Hershey”) Setting Variables 40

  41. Macros • An action or a set of actions you can use to automate tasks. • Macros are recorded in the VBA code

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

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

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

  45. Quiz • See Examples • Create your own Quiz with: • Interactivity • Feedback • Results • Print Report

  46. Any Questions? Thank you!!!

More Related