autofit_AutoFit合并的单元格行高更新20151203

本文介绍了在Excel中遇到合并单元格行高自动调整问题的解决方案。作者提供了由Smallman改进的VBA代码,该代码能够智能判断合并单元格中哪个包含最多文本,并据此设置行高,解决了当行中存在多个合并单元格时,双击调整行高不准确的问题。同时,文章警告使用此类宏会清除撤销历史,并提供了在不同情况下运行代码的建议。
摘要由CSDN通过智能技术生成

autofit

Way back in June 2012, I posted some sample code for adjusting the row height in merged cells. It's been 3-1/2 years, and people are still commenting on that article!

早在2012年6月,我发布了一些示例代码来调整合并单元格中的行高 。 已经有3-1 / 2年了,人们仍然在评论那篇文章!

Apparently it is a common problem, and even though I don't like merged cells, sometimes we just have to deal with them.

显然,这是一个普遍的问题,即使我不喜欢合并的单元格,有时我们也只需要处理它们。

AutoFit Merged Cells in Excel http://blog.contextures.com/

自动调整问题 (The AutoFit Problem)

To quickly summarize the problem – if cells are merged, the rows don't AutoFit correctly when you double-click in the row button area.

为了快速总结问题–如果合并单元格,则在行按钮区域中双击时,行将无法正确进行自动调整。

For example, the text doesn't fit in the merged cell below.

例如,该文本不适合下面的合并单元格。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值