xldown
inserts and moves the selected cells/row down.
ie Range(*****).Insert Shift:=xlDown
But what i want instead to do is to keep the selected row as it as and shift the below rows down.
Can anyone help on writting vba for this ?
Thanks in advance
For a single column using
Dim rng1 As Range
Set rng1 = Range("A1:A10")
rng1.Cells(1).Offset(rng1.Cells.Count).Resize(rng1.Cells.Count, 1).Insert Shift:=xlDown
would insert cells from A11:A20
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.