gpt4 book ai didi

excel - 从我的插件自定义 Office(Word/Excel/PowerPoint)标准工具栏、功能区、菜单和上下文菜单

转载 作者:行者123 更新时间:2023-12-02 16:37:08 24 4
gpt4 key购买 nike

我有一个用 C++ 实现的 Office 插件。

根据我的插件的上下文和逻辑,我想启用/禁用 Office 的某些现有 UI 元素(菜单、功能区、上下文菜单和旧版 Office CommandBar)。

请帮助我或向我指出如何执行此操作的资源(也欢迎使用 C# 或 VBA 资源)。

最佳答案

一些可以消除 Excel VBA 中主要问题(功能区、命令栏)的方法。

显示和隐藏功能区界面:

Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"

Show and hide command bars in older versions of Excel .

关于excel - 从我的插件自定义 Office(Word/Excel/PowerPoint)标准工具栏、功能区、菜单和上下文菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13177831/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com