Professional Documents
Culture Documents
Dhirendra Meher
dhirendrameher12@Hotmail.com
VBA is the programming language used
within Excel to develop macros. It stands
for Visual Basic for Applications.
VBA stands for Visual Basic for Applications an event driven programming
language from Microsoft that is now predominantly used with Microsoft office
applications such as MS-Excel, MS-Word and MS-Access.
We can use VBA in all office versions right from MS-Office 97 to MS-Office
2016 and also with any of the latest versions available. Among VBA, Excel
VBA is the most popular one and the reason for using VBA is that we can
build very powerful tools in MS Excel using linear programming.
You might wonder why we need to use VBA in excel as MS-Excel itself
provides loads on inbuilt functions. MS-Excel provides only basic inbuilt
functions which may not be sufficient to perform complex calculations. Under
those circumstances VBA becomes the most obvious solution.
Modules: Where we write Code (Right click -
Project Explorer window-Module
-922,337,203,685,477.5808 to
Currency(@)
922,337,203,685,477.5807
-3.402823E38 to -1.401298E-45 for neg values, and 1.401298E-
Single(!) 45 to 3.402823E38 for pos
Byte 0 to 255
Application
Workbook
Worksheet
Range
Cell
Let us take a Real Life Scenario
Objects:
Several Small Objects like Room, Door, Wall, Fan, etc…
Properties:
Different Measurements or Properties like Width, Height, Wall Colors, Names
etc.…
Collections:
You can say all of the rooms as Rooms Collection, all the doors can be Doors
Collection, etc.…
Events:
On Close the door, On Open the Door, On Switch on the TV, etc…
Methods:
There will be different actions like Cleaning, Painting, Washing, Watching, etc.…