各位大神,小弟菜鸟一枚,刚刚学macro,下面这段代码的autofit怎么也运行不了,不知道为什么,求帮助!
Dim sht As Worksheet
For Each sht In ThisWorkbook.Worksheets
sht.Cells.EntireColumn.AutoFit
Next sht
各位大神,小弟菜鸟一枚,刚刚学macro,下面这段代码的autofit怎么也运行不了,不知道为什么,求帮助!
Dim sht As Worksheet
For Each sht In ThisWorkbook.Worksheets
sht.Cells.EntireColumn.AutoFit
Next sht
用excel录制一个宏,看生成的代码是什么。
sht.Cells.Select
sht.Cells.EntireColumn.AutoFit
这样写看看
看看这个宏本身的代码是否触发。