使用 VBA 最小化 Office 功能区?
我最近没有真正努力搜索,但在过去我已经四处搜索以找出一种使用 VBA 代码最小化功能区的方法。对我来说,我的大多数用户都没有使用 Access 中的功能区,如果我能为他们回收屏幕空间,我会非常高兴。
我知道我可以训练他们将其最小化,但是……好吧……他们是用户,而不是计算机极客。 :-)
I haven't searched real hard recently but in the past I have searched high and low to figure out a way to minimize the ribbon with VBA code. For me, most of my users have no use for the ribbon in Access, I would be very happy if I could reclaim the screen real estate for them.
I know I could train them to minimize it but...well...they are users, not computer geeks. :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的数据库设置为在打开时显示特定的表单,则可以将此代码放入表单的打开事件中:
这是 HideRibbon 子项:
编辑:我更改了 HideRibbon 子项以消除 出错时继续下一步。它在 Access 2003 和 2007 中实现了我想要的功能。不确定所有早期 Access 版本或未来 Access 版本中 SysCmd(acSysCmdAccessVer) 返回的字符串值。
If your database is set up to display a particular form when it's opened, you could put this code in the form's open event:
Here is the HideRibbon sub:
Edit: I changed the HideRibbon sub to eliminate On Error Resume Next. It does what I want in Access 2003 and 2007. Not sure about the string value returned by SysCmd(acSysCmdAccessVer) in all the earlier Access versions, or future Access versions.