Sharing some useful tips, solutions and notes for Geeks.

Monday, July 8, 2013

Macro to put alternate empty rows in excel





Sometimes we need to put alternate empty rows in an excel. For this just copy below code and run macro.You are done.


Sub InsertAlternateRow()
Do While Not IsEmpty(ActiveCell)
ActiveCell.EntireRow.Insert
ActiveCell.Offset(2, 0).Select
Loop
End Sub

No comments: