Visual Basic Editor
VBA is an object-orientated programming language that is identical to the Visual Basic programming language in the way it is structured and in the way that it handles objects.
If you learn how to use VBA in Excel, you will be able to use VBA in all the Office applications.
Each Office applications has a different set of objects that they expose to VBA.
To program an application, you need to be familiar with that particular object model.
The object model is a hierarchy of all the objects that you find in the application.
Visual Basic is the common language behind all the Microsoft Office applications (Excel, Word, PowerPoint, Outlook, Access)
This langauge is built-in as standard to all of the Microsoft Office applications so no extra software needs to be purchased.
There are infact many tasks that can be performed in code that cannot be performed through the user interface.
Inorder to understand macros and to be able to modify your macros you need to understand the Visual Basic Editor (VBE).
The Visual Basic Editor has its own seperate window and looks like an application in its own right.
The VBE is also know as the Visual Basic Integrated Development Environment.
All of the Microsoft Office applications have a Visual Basic Editor built-in.
Displaying the Visual Basic Editor
There are several ways to display the Visual Basic Editor:
1) Select (Tools > Macro > Visual Basic Editor).
2) Press (Alt + F11) to quickly toggle between your application and the VBE.
3) Press the Visual Basic Editor button on the Visual Basic Toolbar
Most of the windows in the IDE including the Project, Properties and Immediate windows can be either docked or floating.
You can also dock the windows to any side of your application window.
You can close the windows and move them around to create more space for the code window.
A docked window is attached or anchored to an edge of the main window.
When a dockable window is moved it snaps to an anchored position.
A floating window on the other hand can be placed anywhere on the screen. You can change the state of your windows from (Tools > Options)(Docking tab).
© 2018 Better Solutions Limited. All Rights Reserved. © 2018 Better Solutions Limited TopNext