I need a macro that will insert a blank row after every fourth row in my spreadsheet. Thanks!
A Amandar097 Aug 20, 2009 #1 I need a macro that will insert a blank row after every fourth row in my spreadsheet. Thanks!
D Don Guillett Aug 20, 2009 #2 try Sub insertrowevery4throw() For i = 4 To Cells(Rows.Count, "a").End(xlUp).Row Step 4 Rows(i).Insert Next i End Sub
try Sub insertrowevery4throw() For i = 4 To Cells(Rows.Count, "a").End(xlUp).Row Step 4 Rows(i).Insert Next i End Sub
A Amandar097 Aug 20, 2009 #3 Thanks Don - that's exactly what I needed Don Guillett said: try Sub insertrowevery4throw() For i = 4 To Cells(Rows.Count, "a").End(xlUp).Row Step 4 Rows(i).Insert Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software (e-mail address removed) Click to expand...
Thanks Don - that's exactly what I needed Don Guillett said: try Sub insertrowevery4throw() For i = 4 To Cells(Rows.Count, "a").End(xlUp).Row Step 4 Rows(i).Insert Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software (e-mail address removed) Click to expand...