Difference between revisions of "Visual Basic for Applications"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(etc)
(examples)
Line 10: Line 10:
  
 
VBA is built into most [[Microsoft Office]] applications, including [[Microsoft Access]], [[Microsoft Excel]], and [[Microsoft Word]].
 
VBA is built into most [[Microsoft Office]] applications, including [[Microsoft Access]], [[Microsoft Excel]], and [[Microsoft Word]].
 +
 +
== See also ==
 +
 +
* [[Visual Basic for Applications examples]]
  
 
== External links ==
 
== External links ==
  
 
* [https://en.wikipedia.org/wiki/Visual_Basic_for_Applications Visual Basic for Applications] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Visual_Basic_for_Applications Visual Basic for Applications] @ Wikipedia

Revision as of 07:09, 3 August 2015

Visual Basic for Applications (VBA) is an implementation of Microsoft's event-driven programming language, Visual Basic 6, and its associated integrated development environment (IDE).

Visual Basic for Applications enables building user-defined functions (UDFs), automating processes and accessing Windows API and other low-level functionality through dynamic-link libraries (DLLs).

It can be used to control many aspects of the host application, including manipulating user interface features, such as menus and toolbars, and working with custom user forms or dialog boxes.

As its name suggests, VBA is closely related to Visual Basic and uses the Visual Basic Runtime Library, but it can normally only run code within a host application rather than as a standalone program. It can, however, be used to control one application from another via OLE Automation. For example, it is used to automatically create a Word report from Excel data, which are automatically collected by Excel from polled observation sensors.

VBA has the ability to use (but not create) (ActiveX/COM) DLLs, and later versions add support for class modules.

VBA is built into most Microsoft Office applications, including Microsoft Access, Microsoft Excel, and Microsoft Word.

See also

External links