作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我可以使用 Range("A3:D9").EntireColumn.AutoFit
根据每列中最宽的列来固定列宽A:D
但是,Range("A3:D9").AutoFit
不起作用 - 我想我明白为什么,AutoFit 是一种仅适用于 EntireColumn 的方法! - 我认为?!
有没有办法让它工作 - 使用 AutoFit 来修复基于 的列宽我的范围内每列的最大 col 宽度 而不是整个专栏?
最佳答案
来自 AutoFit manual :
The Range object must be a row or a range of rows, or a column or a range of columns. Otherwise, this method generates an error.
Range("A3:D9").Columns.AutoFit
Range("A3:D9").Rows.AutoFit
Range("A3:D9").AutoFit
关于vba - Excel VBA AutoFit 基于一定范围?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50044795/
我正在尝试开发右边框/Angular 具有特定 Angular (30°) 的表格。我见过一些类似的解决方案,但它们都无法在一定程度上发挥作用。如果我想从 30° 改变到 20°,我不想花太多力气。
我是一名优秀的程序员,十分优秀!