Part A: Introduction to Excel VBA



Similar documents
Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Working with Macros and VBA in Excel 2007

Excel & Visual Basic for Applications (VBA)

Microsoft Office Access 2007 which I refer to as Access throughout this book

New Features in Microsoft Office 2007

Microsoft Office 2007 Orientation Objective 1: Become acquainted with the Microsoft Office Suite 2007 Layout

POWERPOINT BASICS: MICROSOFT OFFICE 2013

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

Programming in Access VBA

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro.

Task Force on Technology / EXCEL

1. Go to your programs menu and click on Microsoft Excel.

Getting Started With SPSS

3. Locate the different selections of Styles from the Home Tab, Styles Group

Microsoft Excel 2007 and Tools for Statistical Analysis David R. Anderson, Dennis J. Sweeney, and Thomas A. Williams

Automate tasks with Visual Basic macros

Call Centre Helper - Forecasting Excel Template

Excel 2007: Basics Learning Guide

Word 2010: Mail Merge to with Attachments

Basic Microsoft Excel 2007

Microsoft Office Excel 2007 Key Features. Office of Enterprise Development and Support Applications Support Group

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

Using Excel for Business Analysis: A Guide to Financial Modelling Fundamentals

Excel macros made easy

MS Excel Template Building and Mapping for Neat 5

Microsoft Word Level 3

Consider the possible problems with storing the following data in a spreadsheet:

Microsoft Excel Introduction to Microsoft Excel 2007

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

Unleashing Hidden Powers of Inventor with the API Part 1. Getting Started with Inventor VBA Hello Inventor!

Appendix A How to create a data-sharing lab

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

2. The Open dialog box appears and you select Text Files (*.prn,*.txt,*.csv) from the drop-down list in the lower right-hand corner.

ACCESS Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818)

WHAT S NEW IN MS EXCEL 2013

Personalizing your Access Database with a Switchboard

Financial Data Access with SQL, Excel & VBA

Microsoft Access Rollup Procedure for Microsoft Office Click on Blank Database and name it something appropriate.

Roth IRA Conversion Evaluator

Excel 2010: Create your first spreadsheet

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Excel 2007 Basic knowledge

Introduction to Word 2007

Microsoft Office Access 2007 Basics

Introduction to dobe Acrobat XI Pro

Highline Excel 2016 Class 26: Macro Recorder

Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010.

DIRECTIONS FOR SETTING UP LABELS FOR MARCO S INSERT STOCK IN WORD PERFECT, MS WORD AND ACCESS

Creating tables of contents and figures in Word 2013

3 What s New in Excel 2007

Powerpoint Help Booklet. by James Jackson. library/jacksonj

Q&As: Microsoft Excel 2013: Chapter 2

Appendix K Introduction to Microsoft Visual C++ 6.0

ACCESS 2007 BASICS. Best Practices in MS Access. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818)

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

How to Add Users 1. 2.

Overview... 2 How to Add New Documents... 3 Adding a Note / SMS or Phone Message... 3 Adding a New Letter How to Create Letter Templates...

Pop up blocker test XP Service Pack 2 - Pop Up Blocker

Create a Poster Using Publisher

TUTORIAL 4 Building a Navigation Bar with Fireworks

Working with sections in Word

Microsoft PowerPoint 2010

Protus Virtual Fax Send Fax Plug-in Installation and User Guide

Using WordPerfect s Legal Tools

Microsoft Excel 2010 and Tools for Statistical Analysis

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

TxEIS on Internet Explorer 7

Microsoft Migrating to PowerPoint 2010 from PowerPoint 2003

Overview of sharing and collaborating on Excel data

NAVIGATION TIPS. Special Tabs

VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK

Microsoft Migrating to Word 2010 from Word 2003

Sample- for evaluation purposes only! Advanced Excel. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.

Step Sheet: Creating a Data Table and Charts

How to Make the Most of Excel Spreadsheets

Microsoft Excel 2013 Tutorial

Microsoft Excel 2013: Using a Data Entry Form

Macros in Word & Excel

MICROSOFT ACCESS 2003 TUTORIAL

Search help. More on Office.com: images templates

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Room Bookings in Outlook 2010

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

Instructions for Creating an Outlook Distribution List from an Excel File

Microsoft Excel 2010 Tutorial

Microsoft Access 2010 Part 1: Introduction to Access


In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

Using Mail Merge in Microsoft Word 2003

Using and the Internet

Excel 2007 A Beginners Guide

Knowledgebase Article

Microsoft Excel Training - Course Topic Selections

Proveit Excel 2013 Answers

TRIAL SOFTWARE GUIDE 1. PURPOSE OF THIS GUIDE 2. DOWNLOAD THE TRIALSOFTWARE 3. START WIDS 4. OPEN A SAMPLE COURSE, PROGRAM

Umbraco v4 Editors Manual

Introduction to Microsoft Access 2003

Transcription:

Learn Advance Forecasting Technique With MS Excel Previous Back to Home Back to TOC Next Part A: Introduction to Excel VBA Download This Tutorial >> Click Here! Mi piace 5 Tw eet 0 6 In this Part you will learn - why use Excel VBA - the Visual Basic Editor The purpose of this course is to show Excel users how to use the Visual Basic For Application programming language that comes free with MS Excel. This tool will help you to significantly enhance the power of the world s most popular spreadsheet. Using VBA, however, involves programming, simple but very powerful. Nowadays computer programming has become much easier, and even so-called normal people now engage in this activity. Programming simply means developing instructions that the computer automatically carries out. Excel programming means that you can instruct Excel to automatically do things that you normally do manually saving you lots of time resources. Since you re reading this, it s a safe bet that you need to become an Excel programmer. This could be something you initiated or you want to make yourself more marketable. In this online course, we will learn about Excel programming so that by the time you finish this course, you can honestly say, Oh, Excel programming is so easy. At the end of this course, we will also learn develop a few simple applications with Excel VBA. Before learning how to program in VBA, you have to learn how to use the software required for creating your projects. The VBA development software is included with each component of the Microsoft Office suite of programs, including Excel. Starting the VBA development software places you in the VBA programming environment IDE, which provides you with a number of tools for use in the development of your project. 1) What is Visual Basic Editor? You have use workbooks, formulas, charts, and other Excel goodies most of the time. Now it s time to expand your horizons and explore an entirely new aspect of Excel: the Visual Basic Editor (VBE). In this chapter, you find out how to work with the VBE, and get down to the task of writing some VBA code.

The Visual Basic Editor is a separate application where you write and edit your VBA macros. It works seamlessly with Excel. You can activate the VBE by pressing Alt+F11 when Excel is active or by using the Tool-Macro-Visual Basic Editor command.(fig-1.1) To return to Excel, press Alt+F11 again. (Figure 1.1) (a) Menu Bar Just like any other program menu bar that you have used, the VBE menu bar contains various commands and components. You can use this commands and components in the VBE to do things. Many of the menu commands have shortcut keys associated with them. (Figure 1.2) Figure 1.2 is the VBE program window. There are a few components on this window. (b) Project Explorer

(Figure 1.3) The Project Explorer window displays a tree diagram that shows every workbook currently open in Excel (including add-ins and hidden workbooks). When you re working in the VBE, each Excel workbook and add-in that s open is a project. You can think of a project as a collection of objects arranged as an outline. Click on the plus sign (+) at the left of the project s name in the Project Explorer window to expand a project. (c) Code Window The VBA code is contains in the Code window (Figure 1.4, sometimes known as a Module window). Every object in a project has an associated Code window. Double-click the object in the Project Explorer window to bring up the Code Window. For example, to view the Code window for the Sheet1 object, double-click Sheet1 in the Project Explorer window. Unless you ve added some VBA code, the Code window will be empty.

(Figure 1.4) (d) Object Browser The VBE includes another tool, known as the Object Browser (Figure 1.5). This tool allows you browse through the objects available to you. To access the Object Browser, press F2 when the VBE is active (or choose View Object Browser). You see a window like the one shown in Figure 1.5. The drop-down list at the top contains a list of all currently available object libraries. Figure 1.5 shows All Libraries. If you want to browse through Excel s objects, select Excel from the drop-down list. 1.5) (Figure

(e) Properties Window (Figure 1.6) Figure 1.6 show the Properties window of the CommandButton1.For example when you change the Caption property to of CommandButton1 to Click Me and then notice how the new caption is displayed on the control. You can also play with some of the other properties such as Font, Height, BackColor, Width, and Height to change the appearance of CommandButton1. For users of Excel 2007 ONLY, they need to install VBA for Excel 2007 from your Office CD. Users of earlier versions of Excel need not do so. In the new version of Excel in 2007 the user needs to install VBA for Excel to be able to develop, maintain or modify macros. This is the steps on how to do it : i.. Click on the "Start" button at the bottom of your screen and chose "Control Panel" then "Add or Remove Programs"

ii. Select "Microsoft Office" from the list of programs and click on Change iii. Select "Add or Remove Features" and click on "Continue"

iv. Expand "Office Shared Features" with the + sign

v. Select "VBA for Application" and click on "Continue"

vi. After the installation you can now use VBA for Excel 2007. vii. Next you need to show the "Developer" item on your toolbar. To do so click on the Office button:, and then click the Excel Options button. In the Popular category, select the Show Developer tab in the Ribbon check box from the options that appear and then click OK. Now click the Developer tab in the ribbon to see the Visual Basic button in the Code group.

Note: You can switch back and forth between workbook environment and the Visual Basic Editor (VBE) environment with the Alt+F11 combination or with the application tabs at the bottom of the Windows screen. You should now see a new item on your Excel menu bar "Developer" and you can develop macros when you are ready. viii. Lastly, set the security level of Excel so that you can use macros. To do so, click on the "Developer" menu item and click on the "Macro Security" button in the ribbon. Check the second level "Disable all Macros with Notification" and you are set. 2) Summary: I hope that in this Part A, you did get a basic introduction to the VBA programming environment. So, you ve learn how to access the VBA IDE and how to view and use some of its major components. Previous Back to Home Back to TOC Next TOP