给另一个向下插入行思路:
Private Sub InsertRow()
Dim IR As Integer Dim rng As Range
IR = ActiveCell.Row Set rng = ActiveCell
rng.EntireRow.Copy '复制行 rng.EntireRow.Insert Shift:=xlUp '插入复制的行 rng.EntireRow.ClearContents '清除复制内容
Application.CutCopyMode = False '取消选择区域
End Sub
使用道具 举报
看看
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )
GMT+8, 2024-5-15 23:48 , Processed in 0.296446 second(s), 4 queries , Gzip On, Yac On.
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.