COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.

Slides:



Advertisements
Similar presentations
Excel Vocabulary.
Advertisements

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
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
Tutorial 7: Developing an Excel Application
Developing an Excel Application
Tutorial 8: Developing an Excel Application
Excel Tutorial 6 Managing Multiple Worksheets and Workbooks
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
FIRST COURSE Getting Started with Microsoft Office 2007.
Microsoft Excel 2003 Illustrated Complete with Excel Programming.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
FIRST COURSE Getting Started with Microsoft Office 2007.
Using the Visual Basic Editor Visual Basic for Applications 1.
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
COMPREHENSIVE PowerPoint Tutorial 3 Adding Special Effects to a Presentation.
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)
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Macros and VBA A macro is a set of instructions that tells Excel which commands to execute.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Access Tutorial 10 Automating Tasks with Macros
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
© 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-
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
Creating Macros Using VBA. Assigning a Macro to a Button Display the Forms toolbar. Click the Button icon. Click and drag the mouse pointer to specify.
9/17/2015PowerPoint Differences Between Excel 2003 to 2007 Purdue University Calumet Excel 2003 Excel 2007.
Introduction to VBA MGMI Aug What is VBA? VBA = Visual Basic for Application Excel’s powerful built-in programming language An event-driven.
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Visual Basic for Applications Macro Programming For Microsoft Office.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
VBA Lab 2 I ns.Samia Al-blwi. Visual Basic Grammar Object: Visual Basic is an object-oriented language. This means that all the items in Excel are thought.
OCC Network Drives  H:\  P:\ 
® Microsoft Office 2013 Access Creating a Database.
® Microsoft Office 2010 Integrating Word, Excel, Access, and PowerPoint.
FIRST COURSE Getting Started with Microsoft Office 2007 COM111 Introduction to Computer Applications.
 The ribbon is the primary form of navigation in the Microsoft Office 2007 system.  There are seven Tabs on the Ribbon, more (contextual) tabs will.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Chapter 11: Introduction to VBA Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Introduction to Excel VBA UNC Charlotte CPE/PDH Series December 17, 2009.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Spreadsheets 101 What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
Microsoft Office 2007 Excel Chapter 9 Part 4: Comparing and merging Workbooks.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
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.
Microsoft Excel 2007 Noris Bt. Ismail Faculty of Information and Communication Technology Tel : (Ext 8408) BCOMP0101.
The Advantage Series ©2005 The McGraw-Hill Companies, Inc. All rights reserved Chapter 12 Introducing Visual Basic for Applications Microsoft Office Excel.
COMPREHENSIVE Getting Started with Microsoft Office 2007.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Excel Tutorial 8 Developing an Excel Application
Developing an Excel Application
Microsoft Office Illustrated
Microsoft Office Illustrated
Microsoft Excel 2003 Illustrated Complete
Exploring Microsoft Excel
Macro.
Microsoft Office Excel 2003
Microsoft Excel 2007 – Level 2
Presentation transcript:

COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications

XP 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 Create an input box to retrieve information from the user New Perspectives on Microsoft Office Excel 20072

XP Objectives Create and run If-Then control structures Work with comparison and logical operators Create message boxes Customize the Quick Access Toolbar Customize Excel New Perspectives on Microsoft Office Excel 20073

XP Developing an Excel Application New Perspectives on Microsoft Office Excel 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

XP Working with the Visual Basic Editor In the Code group on the Developer tab, click the Macros button Click the macro name in the Macro name box, if necessary, and then click the Edit button New Perspectives on Microsoft Office Excel 20075

XP Working with the Visual Basic Editor A project is a collection of macros, worksheets, data- entry forms, and other items that make up the customized application you’re trying to create Project Explorer is the window in the Visual Basic Editor that displays a hierarchical list of all currently open projects and their contents The Project Explorer window is dockable An object is any element within the Excel working environment such as a worksheet, cell, workbook, or even Excel itself New Perspectives on Microsoft Office Excel 20076

XP Working with the Visual Basic Editor A property is an attribute of an object that defines one of its characteristics, such as its name, size, color, or location on the screen You can view a list of properties for any object in the Properties window A module is a collection of VBA macros The Code window displays the VBA macro code associated with any item in Project Explorer New Perspectives on Microsoft Office Excel 20077

XP Working with the Visual Basic Editor New Perspectives on Microsoft Office Excel 20078

XP Working with Sub Procedures A sub procedure performs an action on your project or workbook, such as formatting a cell or displaying a chart A function procedure returns a value A property procedure is used to create custom properties for the objects in your project Syntax refers to the set of rules that specify how you must enter certain commands so that VBA interprets them correctly A comment is a statement that describes the behavior or purpose of a procedure, but does not perform any action New Perspectives on Microsoft Office Excel 20079

XP Working with Sub Procedures New Perspectives on Microsoft Office Excel

XP Referring to Objects VBA is an object-oriented programming language, in which tasks are performed by manipulating objects New Perspectives on Microsoft Office Excel

XP Referring to Objects Objects are often grouped into collections, which are themselves objects, called collection objects New Perspectives on Microsoft Office Excel

XP Referring to Objects VBA organizes objects and object collections in a hierarchy with the Excel application at the top and the individual cells of a workbook at the bottom New Perspectives on Microsoft Office Excel

XP Referring to Objects New Perspectives on Microsoft Office Excel

XP Applying Methods A method is an action that can be performed on an object, such as closing a workbook or printing the contents of a worksheet New Perspectives on Microsoft Office Excel

XP Working with Variables and Values A variable is a named element in a program that can be used to store and retrieve information Every variable is identified by a unique variable name Dim variable as type New Perspectives on Microsoft Office Excel

XP Retrieving Information from the User New Perspectives on Microsoft Office Excel

XP Working with Conditional Statements New Perspectives on Microsoft Office Excel

XP Working with Conditional Statements New Perspectives on Microsoft Office Excel

XP Working with Conditional Statements New Perspectives on Microsoft Office Excel

XP Working with Conditional Statements New Perspectives on Microsoft Office Excel

XP Creating a Message Box MsgBox Prompt, Buttons, Title New Perspectives on Microsoft Office Excel

XP Customizing the Quick Access Toolbar Click the Office Button, and then click Excel Options Click Customize in the Excel Options list Click the Customize Quick Access Toolbar arrow, and select whether to customize the toolbar for all documents or a specific workbook To add a command to the Quick Access Toolbar, click the command in the left list box, and then click the Add button To remove a command from the Quick Access Toolbar, click the command in the right list box, and then click the Remove button Click the OK button New Perspectives on Microsoft Office Excel

XP Customizing the Quick Access Toolbar New Perspectives on Microsoft Office Excel

XP Customizing Excel Screen Elements Excel screen elements fall into three general categories with elements that are: (1) part of the Excel program, (2) part of the Excel workbook window, and (3) part of the Excel worksheet New Perspectives on Microsoft Office Excel

XP Excel Customization Options New Perspectives on Microsoft Office Excel

XP Using the Save As PDF Add-In PDF (Portable Document Format) is a file format developed by Adobe Systems that supports all of the elements of a printed document but in an electronic format that is easily shared Add-in available from microsoft.com New Perspectives on Microsoft Office Excel