VBA Training01

  • Upload
    rmamac

  • View
    224

  • Download
    1

Embed Size (px)

Citation preview

  • 8/14/2019 VBA Training01

    1/12

    Visual Basic for ApplicationBasic Excel Macro (VBA) Orientation Course

  • 8/14/2019 VBA Training01

    2/12

    Loading

  • 8/14/2019 VBA Training01

    3/12

    Course Objectives:

    To have a basic knowledge on VBA

    To be able to learn the VBA Programming Fundamentals

    To be able to make VBA programs

  • 8/14/2019 VBA Training01

    4/12

    Course Outline:

    Introduction to VBA

    Getting Started with VBA part 1

    Getting Started with VBA part 2

    VBA Object Oriented Programming

    VBA Userforms & Additional Controls

  • 8/14/2019 VBA Training01

    5/12

    Introduction to VBA:

    What is VBA

    Visual Basic-4GL, Visual Program Development, GUI

    -created in Integrated Development Environment, IDE

    -Rapid Application Development (RAD) languages

    Visual Basic forApplication

    -programming language created by Microsoft that can built into

    applications

    -Purpose: to enhance and automate operations

    -

    -part of an Office applications

    -compatible for Excel 97 onward

    19701983

    1982 19851994VisiCalc Lotus 1-2-3 MultiPlan Excel XLM VBA(Excel 5)

  • 8/14/2019 VBA Training01

    6/12

    Introduction to VBA:

    Why use VBA?

    -Automate tedious processes

    -Enhance the User Experience

    -Hide the Underlying Complexity of a spreadsheet

    -Integrate with another application or database

    -Prevent the modification of certain aspects of a spreadsheet

    Why use Excel?

    -You can build on the functionality of Excel rather than starting from scratch

    -Excel is already installed on nearly every corporate PC

    -Excel applications are easy to distribute

    -Excel applications can be developed very rapidly

    -VBA is relatively easy to learn

  • 8/14/2019 VBA Training01

    7/12

    Introduction to VBA:

    RELATIONSHIP

    Workbook

    Worksheets

    Charts

    VBE

    Modules

    VBA Codes

    Userforms

    Data & Information

  • 8/14/2019 VBA Training01

    8/12

    Introduction to VBA:Getting To Know Your Environment

    VBE

    -Visual Basic Editor

    -VBA IDE

    -VBA Development Environment

    -provides with a number of tools for the development of the program

    Getting to the VBA Environment

    Tools

    Menu

    Shortcut

  • 8/14/2019 VBA Training01

    9/12

    Introduction to VBA:Getting To Know Your Environment

    VBA Development Environment

    Menu bar

    Standard Toolbar

    Project Explorer Window

    Properties Window

    Code Window

    Watch Window

    Local Window

    Immediate Window

  • 8/14/2019 VBA Training01

    10/12

    Introduction to VBA:Getting To Know Your Environment

    Microsoft Excel Objects-Specific/Common functions that are available for the repeated use

    -Excel Worksheets/Workbooks/Charts/Cells

    Forms

    Userforms that can be added to the project

    Modules

    Container of the procedures or codes

    Class Modules

    Special kind of Module that allows custom objects

  • 8/14/2019 VBA Training01

    11/12

    Introduction to VBA:

    Excel Macro

    -Procedure (VBA)

    -Record actions and translate it into VBA

    *Record any task you can do in Excel

    *Every stroke is recorded, Errors as well

  • 8/14/2019 VBA Training01

    12/12

    Chapter 1

    Chapter 2