Hello, I have a problem, I know it's not a big problem but I don't get it :P
I'm using
to copy row 6 and insert a copy of it below.
My problem is that the new row appears ABOVE, not below where I wanted it. What's wrong with the code?
PS. Range a6:d6 is what needs to be copied. Is it possible to select only this range, not the whole row? (but this is not necessary)
I'm using
Code:
Sub insertrow()
ActiveSheet.Unprotect Password:="1"
With Rows(6)
.Copy
.Insert 'the copy will be put in the newl;y created row
End With
Application.CutCopyMode = False
ActiveSheet.Protect Password:="1"
End Sub
to copy row 6 and insert a copy of it below.
My problem is that the new row appears ABOVE, not below where I wanted it. What's wrong with the code?
PS. Range a6:d6 is what needs to be copied. Is it possible to select only this range, not the whole row? (but this is not necessary)