excel - Excel VBA - 无法更改停靠的“查询和连接”的宽度
问题描述
我正在尝试以编程方式打开“查询和连接”命令栏。它默认停靠在右侧 (msoBarRight)
但是,仅设置.Visible = True会打开它太窄。
我试图通过设置.Width来解决这个问题,但它只是忽略了它......
如果 CommandBar 浮动没有问题。
我正在使用 Excel 365。
示例代码如下:
With Application.CommandBars("Queries and Connections")
.Visible = True
.Width = 350 'This part does nothing
End With
解决方案
推荐阅读
- vue.js - 如何根据复选框和输入值递增
- azure - 从命令行更改 Azure 目录
- php - 在循环内运行 sql 查询
- vba - 在 ms-word 中选择另一个复选框时如何隐藏复选框选项
- python - 列表理解 - 收到错误消息
- python - 字典问题--按对象/值引用?
- identityserver4 - 没有为 IdentityServer4 的参考令牌的客户端配置共享密钥
- hibernate-search - Hibernate Search 是否适用于使用 JPA 转换器注释的字段
- c# - 使用向量而不是数组
- jquery - JQuery 匹配高度在 Rails 5.2 上不起作用