Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Inserting Blank rows between items

How can I quickly insert 3 blank rows between a list of many items? For
example, I have the following list of items in cells a1 thru a5 and I want to
quickly insert 3 blank rows between each item, without having to do each one
at a time:

John
James
Joe
Nancy
Steve

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Inserting Blank rows between items

Sub insert3rows()
For i = Cells(Rows.Count, "a").End(xlUp).Row To 1 Step -1
Rows(i).Resize(3).Insert
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
How can I quickly insert 3 blank rows between a list of many items? For
example, I have the following list of items in cells a1 thru a5 and I want
to
quickly insert 3 blank rows between each item, without having to do each
one
at a time:

John
James
Joe
Nancy
Steve

Thanks for the help.


  #3   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Inserting Blank rows between items

Yikes! I'm a bit of a novice here. What is this you just wrote? Is it a
macro?

"Don Guillett" wrote:

Sub insert3rows()
For i = Cells(Rows.Count, "a").End(xlUp).Row To 1 Step -1
Rows(i).Resize(3).Insert
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
How can I quickly insert 3 blank rows between a list of many items? For
example, I have the following list of items in cells a1 thru a5 and I want
to
quickly insert 3 blank rows between each item, without having to do each
one
at a time:

John
James
Joe
Nancy
Steve

Thanks for the help.



  #4   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Inserting Blank rows between items

Disregard my last post. I tried this as a Macro and it worked perfectly.
Thanks Mr. Guillett!

"JB" wrote:

Yikes! I'm a bit of a novice here. What is this you just wrote? Is it a
macro?

"Don Guillett" wrote:

Sub insert3rows()
For i = Cells(Rows.Count, "a").End(xlUp).Row To 1 Step -1
Rows(i).Resize(3).Insert
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
How can I quickly insert 3 blank rows between a list of many items? For
example, I have the following list of items in cells a1 thru a5 and I want
to
quickly insert 3 blank rows between each item, without having to do each
one
at a time:

John
James
Joe
Nancy
Steve

Thanks for the help.



  #6   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Inserting Blank rows between items

Thanks Don. I'll do that. Here's another quick question: Every time I run
my new Macro you gave me, the Macro records what it's doing and changes
itself so that when I go to run it again, it adds 6 blank rows. How do I get
it to stop changing itself?

"Don Guillett" wrote:

Glad to help
If you're new to macros, you may want to read David McRitchie's intro
at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
Disregard my last post. I tried this as a Macro and it worked perfectly.
Thanks Mr. Guillett!

"JB" wrote:

Yikes! I'm a bit of a novice here. What is this you just wrote? Is it
a
macro?

"Don Guillett" wrote:

Sub insert3rows()
For i = Cells(Rows.Count, "a").End(xlUp).Row To 1 Step -1
Rows(i).Resize(3).Insert
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
How can I quickly insert 3 blank rows between a list of many items?
For
example, I have the following list of items in cells a1 thru a5 and I
want
to
quickly insert 3 blank rows between each item, without having to do
each
one
at a time:

John
James
Joe
Nancy
Steve

Thanks for the help.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Inserting Blank rows between items


The macro is not/can not change itself. It is doing what was asked. It was
designed to run once to add the desired rows. If you are saying that you
want it to add blank rows only if there is not a blank row then it would
have to be re-written.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
Thanks Don. I'll do that. Here's another quick question: Every time I
run
my new Macro you gave me, the Macro records what it's doing and changes
itself so that when I go to run it again, it adds 6 blank rows. How do I
get
it to stop changing itself?

"Don Guillett" wrote:

Glad to help
If you're new to macros, you may want to read David McRitchie's
intro
at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
Disregard my last post. I tried this as a Macro and it worked
perfectly.
Thanks Mr. Guillett!

"JB" wrote:

Yikes! I'm a bit of a novice here. What is this you just wrote? Is
it
a
macro?

"Don Guillett" wrote:

Sub insert3rows()
For i = Cells(Rows.Count, "a").End(xlUp).Row To 1 Step -1
Rows(i).Resize(3).Insert
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JB" wrote in message
...
How can I quickly insert 3 blank rows between a list of many
items?
For
example, I have the following list of items in cells a1 thru a5
and I
want
to
quickly insert 3 blank rows between each item, without having to
do
each
one
at a time:

John
James
Joe
Nancy
Steve

Thanks for the help.





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
Inserting alternate blank rows in Excel KopRed Excel Discussion (Misc queries) 4 April 14th 08 10:32 PM
Macro Help- Inserting Blank Rows jack Excel Discussion (Misc queries) 3 January 16th 07 09:43 PM
Inserting blank rows in Excel. kwm5321 Excel Discussion (Misc queries) 3 December 1st 06 12:19 AM
Inserting Blank rows after every row upto 2500 rows Manju Excel Worksheet Functions 8 August 22nd 06 12:54 PM
Inserting Blank Rows Macro? Michael Saffer Excel Worksheet Functions 2 November 9th 04 06:23 PM


All times are GMT +1. The time now is 02:00 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"