Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Macro to insert a row after every 4th row

I need a macro that will insert a blank row after every fourth row in my
spreadsheet.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Macro to insert a row after every 4th row

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

"Amandar097" wrote in message
...
I need a macro that will insert a blank row after every fourth row in my
spreadsheet.

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Macro to insert a row after every 4th row

Thanks Don - that's exactly what I needed :)

"Don Guillett" wrote:

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

"Amandar097" wrote in message
...
I need a macro that will insert a blank row after every fourth row in my
spreadsheet.

Thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Macro To Insert Row Jeremy Excel Discussion (Misc queries) 6 March 13th 08 02:52 PM
make a macro to insert a macro mithu Excel Discussion (Misc queries) 6 March 20th 07 06:04 PM
DO NOT Insert Row - Macro Danny Excel Worksheet Functions 4 May 5th 06 01:04 AM
Insert A Row Macro Mark Williams New Users to Excel 2 September 30th 05 07:03 PM


All times are GMT +1. The time now is 09:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"