{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ITM 215 Class 26 Apr 29

ITM 215 Class 26 Apr 29 - ITM 215 Computer Applications in...

Info icon This preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
ITM 215: Computer Applications in Business
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8/22/2007 New Perspectives on Microsoft Office Excel Objectives Create a macro using the macro recorder Work with the Project Explorer and Properties window of the VBA Editor Edit a sub procedure Run a sub procedure Work with VBA objects, properties, and methods 22
Image of page 2
8/22/2007 New Perspectives on Microsoft Office Excel Objectives Create and run If-Then control structures Work with comparison and logical operators Create message boxes/input boxes Customize the Quick Access Toolbar Customize Excel 33
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8/22/2007 New Perspectives on Microsoft Office Excel Developing an Excel Application If the Excel Developer tab is not on the Ribbon, click the Office Button , click the Excel Options button, click Popular in the Excel Options dialog box (if necessary), click the Show Developer tab in the Ribbon check box to insert a check mark, and then click the OK button 44
Image of page 4
8/22/2007 New Perspectives on Microsoft Office Excel Visual Basic for Applications VBA is a subset of Visual Basic Macros are converted to VBA programs Programs known as procedures Also called subroutines ; thus the word Sub at the beginning of the macro and End Sub at the end of the macro. VBA allows you to modify macros you record with the Macro
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8/22/2007 New Perspectives on Microsoft Office Excel Syntax The rules governing the formation of statements in a programming language.
Image of page 6
8/22/2007 New Perspectives on Microsoft Office Excel Procedures Procedures are VBA code statements that perform a specific task Can be created in one of two ways: Entering the code directly in the VBA editor Using the macro recorder to capture Excel commands and convert them to VBA
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8/22/2007 New Perspectives on Microsoft Office Excel Traditional Programming Is Executed Sequentially , Beginning with the First Line of Code and Continuing in Order through the Remainder of the Program.
Image of page 8
8/22/2007 New Perspectives on Microsoft Office Excel Visual Basic Programming Is Event Driven , the Order in Which the Procedures are Executed Depends on the Events That Occur Event Oriented
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8/22/2007 New Perspectives on Microsoft Office Excel Events Open a Workbook Close a Workbook Click a Button Enter Data in Form Etc.
Image of page 10
8/22/2007 New Perspectives on Microsoft Office Excel Introduction to Macros Macro recorder stores Excel commands Commands are written in Visual Basic for Applications Macros can be displayed with Visual Basic Editor ( VBE ) Use VBE to create, edit, run, and debug (fix) Excel macros Use Project Explorer in left-hand pane to
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8/22/2007 New Perspectives on Microsoft Office Excel Macro Statements Sub statement, followed by the name of the macro Sub is short for subroutine Comments begin with apostrophe (’) Comments provide useful information about the purpose of the macro End Sub statement Defines the end of the macro
Image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern