INSERT A ROW AFTER EVERY 5 CELLS IN A SHEET THAT HAS DATA OF 120

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to insert rows after every 5 cells in a excel file that has data of
120 rows. I don’t want to start inserting every single time. Is there a
function to insert a rows in a file at an interval?
 
Try

Dim RowNdx As Long
For RowNdx = 1 To 200 Step 6
Rows(RowNdx).Insert
Next RowNdx



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Hi JVR,

Go to http://www.andrewsexceltips.com/my_utilities.htm and download the
utillities. I got this tip this week from this discussion group and it is
very helpful and it is free! When it is installed on your computer, just go
to the Andrew's Utilities tool bar, then to the "sheet utilities" and select
"show selection tools". There are many functions that can do the work! and
much more.

JS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top