gpt4 book ai didi

excel - Excel 打开时隐藏功能区 - Excel 2016

转载 作者:行者123 更新时间:2023-12-02 17:22:30 28 4
gpt4 key购买 nike

我试图在打开工作文件时隐藏我的丝带。

我已点击以下链接,但不断收到运行时错误 91。 VBA auto hide ribbon in Excel 2013

我在“thisworkbook”模式下编写了以下代码,但无法使该行工作。

 Private Sub Workbook_Open()
CommandBars.ExecuteMso "HideRibbon"
End Sub

最佳答案

您需要在CommandBars前面添加Application

 Private Sub Workbook_Open()
application.CommandBars.ExecuteMso "HideRibbon"
End Sub

关于excel - Excel 打开时隐藏功能区 - Excel 2016,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53068050/

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