Visual Basic for Applications (VBA) 语言参考Language reference for Visual Basic for Applications (VBA)

欢迎使用适用于 Office 的 Visual Basic for Applications (VBA) 语言参考。Welcome to the Visual Basic for Applications (VBA) language reference for Office. 此参考包含概念性概述、编程任务、示例和参考,可指导开发基于 VBA 的解决方案。This reference contains conceptual overviews, programming tasks, samples, and references to guide you in developing solutions based on VBA.


有兴趣开发跨多个平台扩展 Office 体验的解决方案吗?Interested in developing solutions that extend the Office experience across multiple platforms? 查看新的 Office 外接程序模型Check out the new Office Add-ins model.

使用左侧导航栏中的目录查看以下部分中的主题:Use the table of contents in the navigation on the left to view the topics in the following sections:

  • Visual Basic 概念性主题Visual Basic conceptual topics

    提供信息以帮助你了解 Visual Basic 编程。Provides information to help you understand Visual Basic programming.

  • Microsoft Forms 概念性主题Microsoft Forms conceptual topics

    提供有关 Userforms 和控件的信息,以及如何使用 Visual Basic 对其进行编程的信息。Provides information about UserForms and controls, and how to program with them by using Visual Basic.

  • Visual Basic 操作说明主题Visual Basic how-to topics

    描述有用的常见过程(例如,如何使用 对象浏览器 或如何设置 Visual Basic 环境选项)。Describes useful common procedures (for example, how to use the Object Browser or how to set Visual Basic Environment options).

  • Visual Basic 语言参考Visual Basic language reference

    提供有关 Visual Basic 语言的文档:所有其方法、属性、语句、函数、运算符和对象。Provides documentation about Visual Basic the language: all its methods, properties, statements, functions, operators, and objects.

  • Visual Basic 定义Visual Basic definitions

    提供有关各种定义的词汇表,以帮助你了解此文档中出现的概念。Provides a glossary of definitions to help you understand concepts presented in this documentation.

  • Visual Basic 外接程序模型Visual Basic add-in model

    描述如何自定义 Visual Basic 编辑器,并提供有关可用来扩展环境的对象模型的文档。Describes how to customize the Visual Basic editor, and provides documentation for the object model that enables you to extend the environment.

  • 用户界面帮助User Interface Help

    描述 Visual Basic 编辑器的用户界面元素,例如菜单和命令、对话框、窗口和工具栏。Describes user interface elements of the Visual Basic Editor, such as menus and commands, dialog boxes, windows, and toolbars. 错误消息部分包含你可能会遇到的问题的常见原因和解决方案。The error messages section contains common causes and solutions for any issues you may be having.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.