单击 MSOffice 应用程序中的按钮即可打开工具栏
我想要的是通过 Office 应用程序中的标准自定义在工具栏上创建一个按钮,“启用/调用/打开另一个工具栏”? Access 2003 中仍然存在这种情况。
What i want is to create a button on the toolbar via the standard Customize … in Office apps, that ‘enables / calls / opens another toolbar’? This is still in Access 2003.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有 VBA,您就无法做到这一点(但是当您以这种方式标记您的问题时,这可能就是您正在寻找的)。
首先,创建一个显示工具栏的宏:
源在 ozgrid 上
然后,创建一个将调用该宏的自定义按钮:
添加或删除工具栏按钮 (#addicon)
自定义工具栏是通过自定义进行的,有多种方法可以进入自定义:
要向工具栏添加按钮,请选择“自定义”下的选项之一,将按钮移动到您想要在其中看到它的工具栏。单击“自定义”中的按钮,然后查看“自定义”的左下角其描述窗口。
添加或删除工具栏按钮
框,然后将按钮或项目从按钮区域拖到
显示的工具栏。
要删除按钮,请将其拖离工具栏即可删除。
可以将其移动到另一个工具栏,而不是删除,但将其拖动到工作表区域会删除该按钮。
如果在自定义期间将按钮从工具栏拖出,则只能从现有工具栏或内置图案工具栏恢复。正是由于这个原因,您应该将原件存储在隐藏的工具栏中。
右键单击工具栏图标可分配描述,然后
分配一个宏。
来源 - 添加或删除按钮
You can't do that without VBA (but as you tagged your question this way, this is probably what your are looking for).
First, create a macro that displays your toolbar:
Source on ozgrid
Then, create a custom button that will call that macro:
Add or delete a toolbar button (#addicon)
Customizing your toolbars is from customize, and there are several ways of getting into customize:
To add a button to a toolbar select one of the choices under customize, move the button to the toolbar you want to see it in. Click on an button in customize and look in lower left corner of customize window for it's description.
Add or delete a toolbar button
box, and then drag the button or item from the Buttons area to the
displayed toolbar.
To delete a button, drag it off the toolbar to delete.
It can be moved to another toolbar, instead of deleting, but dragging it to the worksheet area will delete the button.
If a button is dragged off a toolbar during customize it can only be restored from an existing toolbar or the builtin pattern toolbars. It is for this reason that you should store originals in a hidden toolbar.
Right-click on the toolbar icon to assign a description, and to
assign a macro.
Source - Add or delete a button