View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Inserting Blank rows after every row upto 2500 rows

Manju

Don's code works fine for me.

What didn't it do for you?


Gord Dibben MS Excel MVP

On 21 Aug 2006 19:12:21 -0700, "Manju" wrote:


Don Guillett wrote:
this will insert rows
Sub insertrows()
lr = Cells(Rows.Count, "a").End(xlUp).Row
For i = lr To 2 Step -1
Rows(i).Insert
Next i
End Sub

OR, if you just need space,consider doubling the row height.
Sub makerowbigger()
lr = Cells(Rows.Count, "a").End(xlUp).Row
Rows("1:" & lr).RowHeight = 25
End Sub

--
Don Guillett
SalesAid Software



Sorry Sir, Your first code didn't work.