EXCEL中隔行插入一行

excel

1个回答

写回答

黄蓉溶

2025-10-13 06:55

+ 关注

运行宏,25是代表有数据的行数,可以更改Sub InsertRow()n = 1 For i = 1 To 25 If Cells(i + n, 1) "" Then Cells(i + n, 1).Select Selection.EntireRow.Insert n = n + 1 End If NextEnd Sub

举报有用(4分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号