• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

HOW TO INSEART BLANK ROW IN MULTIPLE DATA

Hi Debnath ,


Try this :

[pre]
Code:
Public Sub Insert_Blank_Rows()
Dim input_range As Range
Set input_range = Nothing
On Error Resume Next
Set input_range = Application.InputBox("Select the range within which you want to insert blank rows :", , , , , , , 8)
On Error GoTo 0
If input_range Is Nothing Then Exit Sub
Application.ScreenUpdating = False
input_range.Select
number_of_rows = Selection.Rows.Count
For i = 1 To number_of_rows - 1
input_range.Cells(i, 1).Offset(i, 0).EntireRow.Insert
Next
Set input_range = Nothing
Application.ScreenUpdating = True
End Sub
[/pre]
Narayan
 
Back
Top