Hi All,
I have the following code for a button to add a new row below the last line
of information entered. However, the new line that is ceated copies the data
from the line it is copying. i want to copy the formatting but not the actual
information, i would like the new row to be blank. how would i do this?
Private Sub CommandButton1_Click()
'Insert Entire Row
With Sheet1
..Unprotect
With .Range("code")
.End(xlDown).Offset(1, 0).EntireRow.Insert
.Offset(1, 0).Resize(1, 20).Copy
Destination:=.End(xlDown).Offset(1, 0)
Application.CutCopyMode = False
.End(xlDown).Offset(1, 0).Select
End With
..Protect
End With
End Sub
Thanks in advance!
: )
Bookmarks