Application.ScreenUpdating = False
Dim numRows As Long
Dim r As Long
Dim Rng As Range
Dim lastrw As Long
Dim n As Long
Dim rrc As Long
Dim rc As Long
Dim mn As Long
For r = Rng.Rows.Count To 1 Step -1
Rng.Rows(r + 1).Resize(numRows).EntireRow.Insert
Next r
Application.ScreenUpdating = True
Exit Sub
ErrorMsg: MsgBox ("- The max number of rows you can run this with is 32,767" _
& vbCrLf & "- Your range contains " & rrc & " rows" _
& vbCrLf & "- The Max number of blank rows you can insert" _
& " on this range is " & mn - 1 & " rows per line of data" _
& vbCrLf & "- Try again with fewer rows")
InsertBlankRows
End Sub
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.