Hi, Rachael Whyment,
maybe just paste the formats over?
Private Sub CommandButton15_Click()
Dim lngRows As Long, lngNextRow As Long
On Error GoTo Finish
lngRows = CLng(InputBox("How many rows do you wish to insert?"))
lngNextRow = Range("A" & Rows.Count).End(xlUp).Row + 1
Rows(43).Copy
Rows(lngNextRow & ":" & lngNextRow + lngRows - 1).PasteSpecial Paste:=xlPasteFormats
Finish:
If Err.Number <> 0 Then MsgBox Prompt:="Please ensure you only enter numeric values!"
End Sub
Private Sub CommandButton15_Click()
Dim lngRows As Long, lngNextRow As Long
On Error GoTo Finish
lngRows = CLng(InputBox("How many rows do you wish to insert?"))
lngNextRow = Range("A" & Rows.Count).End(xlUp).Row + 1
Rows(43).Copy Rows(lngNextRow & ":" & lngNextRow + lngRows - 1)
Rows(lngNextRow & ":" & lngNextRow + lngRows - 1).ClearContents
Finish:
If Err.Number <> 0 Then MsgBox Prompt:="Please ensure you only enter numeric values!"
End Sub
Ciao,
Holger
Bookmarks