Introduction to VBA. What is VBA? VBA stands for Visual Basic for Applications. It is a programming language used exclusively by the Microsoft Office.

Slides:



Advertisements
Similar presentations
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
Advertisements

Using VB with MS Applications R. Juhl, Delta College.
Utility SQL Bin (v3.3). Agenda  Purpose  Target User  Benefits  System Requirement  User Guide Introduction Navigation Add New SQL Add New Version.
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
Introduction to Excel Chapter 2 Excel Fundamentals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
Programming in the Office 2003 Environment Corinne Hoisington.
Curious Facts about PowerPoint 97. Did you know that… F PowerPoint 97 now includes Visual Basic for Applications as a macro language?
Using the Visual Basic Editor Visual Basic for Applications 1.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Objectives Machine language vs.. High-level language Procedure-oriented, object-oriented, and event- driven languages Background of Visual Basic VB Integrated.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Chapter 1 Introduction Outstanding Features About This Book 1. A novel writing style is adopted to try to attract students’ or beginning programmers’ interesting.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Introduction to. What is Office 365 Office 365 is the same Office you already know and use every day. Office 365 is powered by “the cloud” which is a.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
Microsoft Visual Basic 2005: Reloaded Second Edition
Visual Basic Advanced Programming.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
VBA: A BRIEF INTRODUCTION SEAMUS STEGENGA MEEN FEBRUARY 11, 2015.
Introduction to VBA MGMI Aug What is VBA? VBA = Visual Basic for Application Excel’s powerful built-in programming language An event-driven.
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
Microsoft Excel Walking Through a Tutorial
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
1 Working with MS SQL Server Textbook Chapter 14.
Integrated Development Environment (IDE)
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
· Adding and Renaming Worksheets
IE 423 – Design of Decision Support Systems Visual Studio Introduction to VB.NET programming.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Visual Basic for Applications Macro Programming For Microsoft Office.
OCC Network Drives  H:\  P:\ 
- Shourie. 3 Basic Questions What How Why Crystal Reports is a business intelligence application for designing and generating reports from a wide range.
IE 423 – Design of Decision Support Systems Visual Studio Introduction to VB.NET programming.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Spreadsheet Applications What is Excel?. Microsoft Excel MS Excel is an electronic workbook that gives you the ability to perform business and scientific.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
ADD-IN EXPRESS World-class Office extensions with little coding.
Microsoft Office Excel By : Juan Pratama Anandika Year : 7 Project Presentation : ICT.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
H OW TO WORK ON MS EXCEL. INTRODUCTION MS Excel is a spreadsheet application developed by Microsoft for Microsoft Windows and Mac OS. It features calculation,
MS Office Local Government Scheme Based Training Microsoft Office Suit  The Microsoft Office Suite is a package of office productivity software released.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
DEPARTMENT OF COMPUTER SCIENCE Introduction to Visual Basic BCA 3 RD YR PRESENTED BY HASHIR UN NABI Dated:01/07/
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Chapter 1 Introduction to Visual Basic
Excel Tutorial 8 Developing an Excel Application
Pivot Tables, Macros and VBA
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
أ.إسراء الطريقي أ. هاله الشملان , 102 تقن , المعمل الخامس
Control Structures (part II)
Statistics for the Social Sciences
Statistics for the Social Sciences
Tutorial 7 – Integrating Access With the Web and With Other Programs
Excel as your personal factotum
Tutorial 11 Using and Writing Visual Basic for Applications Code
Presentation transcript:

Introduction to VBA

What is VBA? VBA stands for Visual Basic for Applications. It is a programming language used exclusively by the Microsoft Office to extend abilities of Microsoft Office Application. In Excel it is used when you need something more complex than Excel's formulas and functions allow. VBA allows you to create very sophisticated Excel spreadsheets. VBA is different from VB 6.0 or VB.NET

Visual Basic (Definition) What is Visual Basic? Visual Basic is a "visual programming" environment for developing Windows (also Web now) applications. Visual Basic makes it possible to develop complicated applications very quickly. Visual Basic is "event-driven” programming language. You must have Visual Studio installed in your computer in order to write the code.

Visual Basic (History) History of Visual Basic Microsoft first released Visual Basic in It was the first visual development tool from Microsoft, and it was to compete with C, C++, Pascal and other well-known programming languages. From the start, Visual Basic wasn't a hit. It wasn't until release 2.0 that people really discovered the potential of the language, and with release 3.0 it had become the fastest-growing programming language on the market.

Visual Basic (History) Approximate year in which a new version of Visual Basic was released: 1991, VB1 1992, VB2 1993, VB3 1996, VB4 1997, VB5 1998, VB6 2001, VB.NET

VB.NET Visual Basic.NET (VB.NET) is an object- oriented computer language that can be viewed as an evolution of Microsoft's Visual Basic (VB) implemented on the Microsoft.NET framework.

Visual Basic vs. Visual Basic for Application Visual Basic 6.0, Visual Basic.NET Visual Basic for Application (VBA) - It is not just for Microsoft Office Application, but for creating any type of software. - It already comes with any Microsoft Application (such as word, excel, access, etc). - Need to install Visual Studio on your computer. - Don’t need to install Visual Studio. - It is designed to use exclusively with Microsoft Office Application to enhance ability of Microsoft Applications. For VB 6.0, VB.NET or VBA, they all are based on Visual Basic Language!!!

VSTO (Visual Studio Tools for Office) VSTO, or Visual Studio Tools for Office, or Microsoft Visual Studio Tools is part of Microsoft's Visual Studio.NET tools suite and supports the Microsoft.NET Framework. To use VSTO, you need to have visual studio.NET installed in your computer. It is used by developers to write code connecting to Microsoft Office Word, Excel and Outlook applications. It is an alternative to Visual Basic for Applications, or VBA

Example: Excel VBA As example, we will build a UserForm that allows users to enter the contact information into a form and save to an Excel worksheet. What you have to do is just open an Excel. In the "Tools" menu, select "Macros" and then "Visual Basic Editor". Go to the "Insert" menu and click on "UserForm". A blank user form and a toolbox will appear. Put objects you need on to the form Write VBA code for your button Please see userform1.htm for more information on this example. userform1.htm

For more information…. Search by any search engine using keyword such as “ VBA, Tutorial” Or Go to s/l/blexuserform1.htm for information of Excel VBA s/l/blexuserform1.htm Or any Microsoft Office book (look at VBA section), VBA book Or using “Help” (by press F1) in MS office applications. Enter keyword you are looking for.