View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
janets janets is offline
external usenet poster
 
Posts: 2
Default adding rows to spreadsheet

Don:

Thanks for taking the time to answer, but where do I enter this code?
and do I need to tell the subroutine how large the spreadsheet is so that
it knows when to stop?

"Don Guillett" wrote:

sub addblankrowevery6()
For i = Cells(Rows.Count, "a").End(xlUp).Row To 5 Step -6
Rows(i).Insert
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"janets" wrote in message
...
How can I automatically enter a blank row every 6 rows in excel. doing it
manually is too time consuming because the spreadsheet is so large.