Trying to get this code to add a new row in excel via a button, not the full row, just the first 10 cells.
Can anyone amend the code for me please
Thanks
Nigel
Code
Sub Button1_Click()
Rows("6:6").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A7:A8").Select
Selection.AutoFill Destination:=Range("A6:A8"), Type:=xlFillDefault
Range("A8:J8").Select
Selection.Copy
Range("A6:J7").Select
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Range("A7:A8").Select
Selection.AutoFill Destination:=Range("A6:A8"), Type:=xlFillDefault
Range("A8:J9").Select
Selection.Copy
Range("A6:J7").Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Worksheets("Sheet1").Columns("A:J").AutoFit
Range("A6").Select
End Sub
Display More
Sorry for not adding Tag's