找到宏或 VBA 代码 - Microsoft 支持
下面介绍如何在文档中查找宏和 VBA 模块: 在 Word 或 Excel 中,单击“ 查看 > 宏 > 查看宏 ”。 在 PowerPoint 中,单击“ 查看 > 宏 ”。
适用于: Microsoft 365 专属 Excel, Microsoft 365 专属 Word, Microsoft 365 专属 PowerPoint, Excel 2024, Word 2024, PowerPoint 2024, Excel 2021, Word 2021, PowerPoint 2021, Excel 2019, Word 2019, PowerPoint 2019, Excel 2016, Word 2016, PowerPoint 2016
将宏分配给窗体或控件按钮 - Microsoft 支持
可以通过单击“代码”组中的“宏”来查找宏。 可以通过在子过程内的单独行上输入宏名称,从按钮运行多个宏。 根据需要添加自己的 VBA 代码。
适用于: Microsoft 365 专属 Excel, Microsoft 365 Mac 版专属 Excel, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2019 for Mac, Excel 2016
快速入门:创建宏 - Microsoft 支持
操作方法. 录制宏之前. 宏和 VBA 工具位于“ 开发工具 ”选项卡上,由于该选项卡默认是隐藏的,因此第一步是启用选项卡。. 有关详细信息,请参阅 显示“开发工具”选项卡。. 录制宏. 在 “开发工具” 选项卡上的 “代码” 组中,单击 “录制宏”。. 或者,在 ...
适用于: Microsoft 365 专属 Excel, Microsoft 365 Mac 版专属 Excel, Excel 2024, Excel 2024 for Mac, Excel 2021 for Mac, Excel 2019, Excel 2019 for Mac, Excel 2016
编辑宏 - Microsoft 支持
使用“开发工具”选项卡上的“Visual Basic 编辑器”编辑宏,或了解如何更改宏安全设置。.
适用于: Microsoft 365 专属 Excel, Excel 2021, Excel 2019, Excel 2016, Excel 2013
在 Excel 网页版 中使用 VBA 宏 - Microsoft 支持
在 Excel 网页版 中使用 VBA 宏. 尽管无法在 Excel 网页版 中创建、运行或编辑 VBA (Visual Basic for Applications) 宏,但可以打开和编辑包含宏的工作簿。. 任何现有宏都将保留在工作簿中,您可以在 Excel 桌面应用中打开工作簿以查看和编辑宏。. 编辑宏:. 如果你有 Excel ...
适用于: Excel 网页版
在 Excel 中更改宏安全设置 - Microsoft 支持
了解如何更改在 Excel 中启用或禁用宏的设置以及其他信息。 更改宏安全设置,控制打开工作簿时所运行的宏。
适用于: Microsoft 365 专属 Excel, Excel 2024, Excel 2021, Excel 2019, Excel 2016, Excel 2013
在单个工作簿中创建并保存所有宏 - Microsoft 支持
在单个工作簿中创建并保存所有宏,方法是在 Personal.xlsb 中创建宏,该工作簿是您每次打开 Excel 时会打开的隐藏工作簿。. 每当您在 Excel 中打开工作簿时,在 Personal.xlsb 中创建的宏都可用。.
适用于: Microsoft 365 专属 Excel, Microsoft 365 Mac 版专属 Excel, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2019 for Mac, Excel 2016, Excel 2013
为工作表上的控件添加或编辑宏 - Microsoft 支持
在Visual Basic编辑器中,编写新宏或更改现有宏。 若要详细了解如何编写宏,请参阅Visual Basic帮助。
适用于: Excel 2016, Excel 2013, Excel 2010, Excel 2007
保护自己免受宏病毒的侵害 - Microsoft 支持
启用或禁用 Office 文件中的宏. 在 Excel 中更改宏安全设置. 了解 Microsoft Office 中有哪些宏病毒以及如何保护自己免受这些病毒的侵害。
适用于: Microsoft 365 专属 Excel, Microsoft 365 专属 Word, Microsoft 365 专属 PowerPoint, Excel 2024, PowerPoint 2024, Excel 2021, Word 2021, PowerPoint 2021, Visio Professional 2021, Visio Standard 2021, Excel 2019, Word 2019, PowerPoint 2019, Visio Professional 2019, Visio Standard 2019, Excel 2016, Word 2016, PowerPoint 2016, Visio 专业版 2016, Visio 标准版 2016, Excel 2013, Word 2013, PowerPoint 2013, Visio 专业版 2013, Visio 2013
保存宏 - Microsoft 支持
Excel 2013. 在 Excel 中,通过运行宏录制器或者使用 VBA Visual Basic for Applications (编辑器) 宏。. 创建宏后,需要保存宏,以便在当前工作簿或其他工作簿中再次使用它。.
适用于: Excel 2013