I have VBA coding to add row and it copy the row no 8 together with format & formula. I also create Input Box to add how many number of row i needed to be added.
Sub RectangleRoundedCorners7_Click()
Dim howMany As Long
howMany = InputBox("How many rows?")
Dim i As Long
For i = 1 To howMany
Range("A8:A9").Select
Range("A8").Activate
With ActiveCell.EntireRow
.Copy
.Offset(1).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
On Error Resume Next
.Offset(1).SpecialCells(xlCellTypeConstants).Value = ""
Application.CutCopyMode = False
On Error GoTo 0
End With
Next
End Sub
The problem is, when I added the new row, the row will be below row number 8. Which make the item that I wrote down in cell before added new row go down and create spaces just like images.
What I want is the new added row to always to be on top of row that contain word "Space". Meaning to say, new row should always be added to the lowest of my table but before row Contain word "space" or row "Total".
This is what I want when I click add new row button
Please Help. Thank You.