 鲜花( 137)  鸡蛋( 0)
|
http://en.wikipedia.org/wiki/Visual_Basic_for_Applications
2 [5 ^$ k6 e8 T4 N% ^
$ R6 Q, T% h8 q3 \8 B8 ~, G. t5 ?- l/ h1 Y) V
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), which are built into most Microsoft Office applications. VBA enables building user defined functions, automating processes and accessing Windows API and other low-level functionality through dynamic-link libraries (DLLs). It is also built into Office for Mac applications (apart from version 2008), other Microsoft applications such as Microsoft MapPoint and Microsoft Visio; as well as being at least partially implemented in some other applications such as AutoCAD, WordPerfect and ArcGIS. It supersedes and expands on the abilities of earlier application-specific macro programming languages such as Word's WordBasic. 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. VBA can also be used to create import and export filters for various file formats, such as OpenDocument (ODF).
( {& d% [) @7 z7 k. m% g
1 h7 U; o/ @' [+ MAs its name suggests, VBA is closely related to Visual Basic and uses the Visual Basic Runtime, but can normally only run code within a host application rather than as a standalone application. It can, however, be used to control one application from another via OLE Automation. For example, it is used automatically to create a Word report from Excel data, in turn automatically collected by Excel from polled observation sensors. The VBA IDE is reached from within an Office document by pressing the key sequence Alt+F11.
n7 {' l: N4 K! I( a
4 T6 [4 H# d* m0 q# f5 fVBA is functionally rich and flexible but it does have some important limitations, such as restricted support for function pointers which are used as callback functions in the Windows API. It has the ability to use (but not create) (ActiveX/COM) DLLs, and later versions add support for class modules. |
鲜花鸡蛋JoyceAccSG 在2012-3-19 21:36 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下
|