EXCEL代码高手请进。加自适应宽度的代码!

excel

1个回答

写回答

18508205224

2025-11-10 06:15

+ 关注

晕,这代码是我写的啊~ 你是sheet1表,要设置宽度自适应。 把最后两句代码: Set dic = Nothing End Sub 改成: Set dic = Nothing Sheets(sheet1).Columns.AutoFit End Sub 就OK啦~

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号