Hi I have recorded the following Macro but it seems to insert another extra row(third row) with format which I did not intend to record:
Sub Macro5()
'
' Macro5 Macro
'
'
ActiveCell.Range("A1:A10").Select
ActiveWindow.SmallScroll Down:=3
ActiveCell.Offset(10, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Selection.Insert Shift:=xlDown
Selection.ClearFormats
ActiveCell.Offset(1, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
ActiveWindow.SmallScroll Down:=3
ActiveCell.Offset(1, 0).Range("A1").Select
End Sub
Anyone able to help me correct the above macro to insert 2 blank rows only after the 10th row without any format and then select the next row after the 2 blank rows ?
Sub Macro5()
'
' Macro5 Macro
'
'
ActiveCell.Range("A1:A10").Select
ActiveWindow.SmallScroll Down:=3
ActiveCell.Offset(10, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Selection.Insert Shift:=xlDown
Selection.ClearFormats
ActiveCell.Offset(1, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
ActiveWindow.SmallScroll Down:=3
ActiveCell.Offset(1, 0).Range("A1").Select
End Sub
Anyone able to help me correct the above macro to insert 2 blank rows only after the 10th row without any format and then select the next row after the 2 blank rows ?