advanced excel microsoft

Excel Macro or VBA

Excel macro programming is also known as VBA or Visual Basic for Application. The term Macro Programming originates from Lotus 1-2-3 spreadsheet program. It was also used in the early version of Excel. The term was gradually replaced by the name VBA. VBA is the short form for Visual Basic for Application. VBA is different from Visual Basic. A good Visual Basic Programmer is rarely a good VBA programmer. To excel as a VBA programmer, the person must be conversant first in the application Microsoft Excel

The 4 main purposes of learning VBA are to

  1. automate repetitive tasks and reduce the need for human intervention;
  2. create and add your own (customised) worksheet functions to the library of worksheet functions;
  3. create an interactive program that automates complex and tedious calculations in Excel;
  4. interact with other office applications such as Ms Word, Ms Access and MS Powerpoint.

Note: Even though VBA is a programming language, you don’t need to be a programmer to use it.

The example in the following section demonstrates how you could make use of macros to enhance your productivity.

INTRODUCTION TO MACRO PROGRAMMING

How to record an excel macro

In this example, we will show you how to create a macro on number formatting by using the macro recording function provided by Excel.

Run an excel macro using an icon

This tutorial will show you how to assign the recorded macro to the icon and then run the macro by clicking on the icon.

How to edit your macro

This page will provide you an orienation of the editor known as Visual Basic Editor which you will use to create, edit or manage your macros or visual basic for application (VBA) codes.

Learn HOW to retrieve data from a database using ADO.

New! Comments


Have your say about what you just read! Leave me a comment in the box below.


Blog or Build an SBI! Site