Difference between revisions of "Visual Basic for Applications"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''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''' ('''VBA''') is an implementation of [[Microsoft]]'s event-driven programming language, Visual Basic 6, and its associated [[integrated development environment]] (IDE).
  
 
== Description ==
 
== Description ==
Line 13: Line 13:
 
It can, however, be used to control one application from another via [[OLE Automation]].
 
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.  
+
For example, it is used to automatically create a Word report from [[Microsoft Excel]] data, which are automatically collected by Excel from polled observation sensors.  
  
 
== DLLs and class modules ==
 
== DLLs and class modules ==
Line 30: Line 30:
  
 
* [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
 +
 +
[[Category:Computer programming]]
 +
[[Category:Microsoft]]
 +
[[Category:Visual Basic for Applications]]

Latest revision as of 12:34, 1 May 2016

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).

Description

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.

Visual Basic

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 Microsoft Excel data, which are automatically collected by Excel from polled observation sensors.

DLLs and class modules

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

Built into Microsoft Office applications

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

See also

External links