Beruflich Dokumente
Kultur Dokumente
Introduction to VBA
| Chandoo.org - 2011
What is VBA?
VBA stands for Visual Basic for Applications. VBA is a programming language which can be used to automate various tasks which often repeat and is the standard programming language used within the Microsoft Office family of products.
| Chandoo.org - 2011
| Chandoo.org - 2011
| Chandoo.org - 2011
The VBE (Visual Basic Editor) is used to write your own code using VBA.
Please look at the video How to Launch VBE for better understanding of
launching VBE.
| Chandoo.org - 2011
running the code. We make use of the variables that we define in our code
to hold data and make use of the same to do more work. It is always suggested to give a proper name (instead of x, y and z) to a variable so that identification of the same is easier when we have lots of them.
| Chandoo.org - 2011
| Chandoo.org - 2011
We make use of procedures often to divide our code into segments which
maybe repeated as and when required.
| Chandoo.org - 2011
What is a Function?
A function is similar to a procedure with the only difference being that we pass a few parameters/arguments for the function to work on and then it
will return a single value to us after the code has been executed.
We use a lot of in-built functions in Excel almost everyday. For example: the Sum function, Average function etc. We can define our own functions using VBA.
| Chandoo.org - 2011
Thanks
| Chandoo.org - 2011