Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.

Slides:



Advertisements
Similar presentations
Microsoft ® Office 2007 Training Security II: Turn off the Message Bar and run code safely P J Human Resources Pte Ltd presents:
Advertisements

or How to make PowerPoint behave like an Interactive Whiteboard.
MS-Word XP Lesson 7.
How can Microsoft PowerPoint 2007 help you share information?
EasyGUI “Probably the Easiest GUI in the world”. Assumptions (Teachers’ Notes) This resources sets out an introduction to using easyGUI and Python
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Using Macros and Visual Basic for Applications (VBA) with Excel
30/04/ Selection Nested If structures & Complex Multiple Conditions.
ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.
Why is Plant Clinic Using a Spreadsheet? A spreadsheet is used most often to calculate and to sort information. We will be using it to enter information.
Advanced PowerPoint Techniques and Introduction to VBA Coding Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
String Variables Visual Basic for Applications 4.
Using the Visual Basic Editor Visual Basic for Applications 1.
My Workspace Profile. Using the course menu, click on Profile.
Key Applications Module Lesson 12 — Word Essentials
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
File Management and Organisation © Copyright William Rowan 2007.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Before modifying and saving: A certificate may be printed when a student answers the last question correctly (Slide 35). A macro is used to print out.
Chapter 8: String Manipulation
Do not begin Slide Show. Stay in normal view for now.
Creating Embedded Formative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Spreadsheets in Finance and Forecasting Presentation 11 Visual Basic.
Making a Timer in Alice.
Adapting a ready made PowerPoint quiz with VBA
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
Hello! Keep watching … I’ll show you how to use a mouse.
Microsoft ® Office 2007 Training Security II: Turn off the Message Bar and run code safely presents:
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
SharePoint You must use Internet Explorer Single click only on links and buttons There are two handouts 1.Importing a Web Part into SharePoint 2.Adding.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Creating your own quiz ClickClick here to open the quiz webpage This quiz will go with your PowerPoint. It will be created to test students on the information.
OCC Network Drives  H:\  P:\ 
Downloading and Installing Autodesk Revit 2016
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Advanced Work with Embedded and Summative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Quiz Title DIRECTIONS: Read each question and click on the correct answer. If you get it wrong use the arrow button to go back to the question and try.
Open Publisher- it is part of Microsoft Office Then find: Blank publications Full page.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Introduction to Excel VBA UNC Charlotte CPE/PDH Series December 17, 2009.
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
You’ll Make a spreadsheet which will be like a Mad Libs Game. These Are The Directions.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
Creating your own quiz ClickClick here to open the quiz webpage This quiz will go with your PowerPoint. It will be created to test students on the information.
Macros in Excel Using VBA Time Required – 5 hours.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Excel Tutorial 8 Developing an Excel Application
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
A short tutorial to get you started
Use proper case (ie Caps for the beginnings of words)
Using the Multiple Choice Template
Star Early Literacy PreTest Instructions
Introduction to TouchDevelop
Visual Basic Menu Editor
Making a non-linear slide show
Tutorial 11 Using and Writing Visual Basic for Applications Code
Microsoft Excel 2007 – Level 2
Presentation transcript:

Lesson 1

Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down to the word Security.

Setting Security You must change the security to low and the trusted Publishers both boxes should be clicked.

Starting Visual Basic Editor Click on the word Tools again then scroll down to the word Marco and select Visual Basic Editor.

Visual Basic Editor Click on the word Insert and then select the word Module

Writing Program We write our programs in box under the word General. Let's get started!

Declaring Variables The word Dim tells the computer at we want to create a variable. Next we must name the variable. In the example above, the names are numCorrect, numIncorrect, and userName. Finally, we must tell the computer how we want to store these variables. Integer means numbers. String means letters or words.

Subroutines A subroutine in a small program that we use as a macro in PowerPoint. The word Sub tells the computer that we are going to create a mini program to run in PowerPoint. After the word Sub we must name the program and remember that it must be one word. You will also notice that after pressing enter the phase End Sub will appear.

Sub GetStarted() We can run other subroutines in a subroutine. We are going to create two subroutines after this one. They are going to be Initialize and YourName. So to run other subroutines in a subroutine, we just type the names of the subroutines. Now for the line ActivePresentation.SlideShowWindow.View.Next. This command tells the computer to move to the next slide.

Sub Initialize() In the Sub Initialize, we have to set the beginning value of numCorrect and numIncorrect to zero. The reason is plain to see. If someone took the test and made a score of 4 then another student took the score and made a 4 also, the message box would say that person got 8 instead of 4. We must reset the value of those two variables.

Sub YourName() There are two kinds of dialog boxes that we use. One is a message box that tells something. The other box is an Input box where we ask for information from the user. In this case, we are asking for information to be store in the variable userName. In this case, we are asking for their name.

Sub RightAnswer() This subroutine is going to keep score and tell the person that we got the right answer. First we have to take numCorrect and add one to score. Next, we are going to create another subroutine called DoingWell which will give a message box. Finally, ActivePresentation.SlideShowWindow.View.Next goes to the next slide.

Sub DoingWell() As I mention before we have two kinds of dialog boxes. In this subroutine we are going to create a message box. We use MsgBox to tell the computer to create a message box. Then we must add ( ) and quotation marks. Any words inside the " " will be shown in the message box. You should also notice that there is an & sign in the (). This tells the computer that we want to add other items to the message. In this case we want to add the userName to the message. Variables never have " " marks around them.

Sub WrongAnswer() Sub WrongAnswer is almost like Sub RightAnswer. Except we are going to add 1 to numIncorrect and we are going to write another subroutine called DoingPoorly. The last statement in the subroutine moves to the next slide.

Sub DoingPoorly() Here we created a message box telling the user that he/she missed the question. Again notice that the words inside the quotation marks will appear in the box. Also, we add an & sign and then the userName.

Results - Sub Feedback() This subroutine will tell the user how well he did. First, you will notice that we used a message box. It is going to print You got in the message box. Then the computer will go to the variable numCorrect and place that value in the message box. Next, it will print out of in the message box. Third, we have the computer add the two variables to get the total number of questions. Finally, it will put the userName in the message box.

Making the Quiz First, we want to create an action button and link the button to the marco GetStarted. After you click on the autoshapes scroll up to action buttons and pick the blank button. Using the mouse draw the an action button. Procedure is here!

Linking Action Button Click on the radio button Run Marco and select GetStarted from the dropdown list. Then click OK! You linked the button!

Making Answer Buttons Create another action button and link it to WrongAnswer. Then click OK!

Making More Buttons Click on the button that you just created. Using the ctrl key and the letter C to copy button. Now use the Ctrl key and the letter V and paste 4 more buttons. All of these buttons have the wrong answer link. By right clicking the mouse on the button that you want the right answer to be. Choose action settings change the marco to RightAnswer. By clicking on the button, you can type letters on the buttons.

Adding More Questions By clicking on the extra button on your first question. Press Ctrl + X to cut the button from that slide. Create a new slide and then press Ctrl + V to paste the button. Click on the button then press Ctrl + C to copy the button. Now press Ctrl + V and paste 4 more buttons. We always keep the last button to move to the next slide. Remember to change the button that you want to be correct. Click on the button and do a right click with the mouse. Select action settings and change the macro to RightAnswer. Type A, B, C, and D on the buttons. Follow the same procedure until you are done with your questions.

Results Create another action button, This time link the macro to Feedback and then press ok. You have just finished your quiz. Try it out!