Hi Everyone,
I have been working on a string and having issues. I have the basic set out, but I want to add in where the rows should be inserted, not at cell A1, but starting at cell A8.
Sub MyInsertRows1()
Application.DisplayAlerts = False
Dim i As Integer
For i = 1 To Range("d1").Value
Rows(1).Insert
Next i
Application.DisplayAlerts = True
End Sub
I'm still learning VBA so please be kind!
I have been working on a string and having issues. I have the basic set out, but I want to add in where the rows should be inserted, not at cell A1, but starting at cell A8.
Sub MyInsertRows1()
Application.DisplayAlerts = False
Dim i As Integer
For i = 1 To Range("d1").Value
Rows(1).Insert
Next i
Application.DisplayAlerts = True
End Sub
I'm still learning VBA so please be kind!