#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default inserting rows

I need to know if there is a way to insert one row in between each line on a
worksheet without having to click "insert" then "row" everytime?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default inserting rows

Stacie

How many are you looking to insert?

If it is just say 20, hold the ctrl key down while selecting every other row
and then taking the menu option you outline, it will insert a row at each
selection. (Depending on your data you may need to repeat)

If it's hundreds we could use code

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Stacie" wrote in message
...
I need to know if there is a way to insert one row in between each line on
a
worksheet without having to click "insert" then "row" everytime?


  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default inserting rows

a simple way is to use a helper column.
fill the column column with 1 to n (N = number of rows with data)
below this enter =A1+.5
copy down to row 2N
selet all and sort by the helper column.
delete the helper column

"Stacie" wrote:

I need to know if there is a way to insert one row in between each line on a
worksheet without having to click "insert" then "row" everytime?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default inserting rows

Try:

Sub stacie()
Set r = ActiveSheet.UsedRange
last = r.Rows.Count + r.Row - 1
For i = last To 1 Step -1
Rows(i).Insert Shift:=xlDown
Next
End Sub
--
Gary''s Student
gsnu200707


"Stacie" wrote:

I need to know if there is a way to insert one row in between each line on a
worksheet without having to click "insert" then "row" everytime?

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 Blank rows after every row upto 2500 rows Manju Excel Worksheet Functions 8 August 22nd 06 12:54 PM
Inserting Rows GOL Excel Discussion (Misc queries) 2 October 27th 05 08:18 PM
inserting rows Ankur Excel Discussion (Misc queries) 0 August 11th 05 11:26 AM
inserting rows Ankur Excel Discussion (Misc queries) 1 August 9th 05 07:26 PM
Inserting rows LeRoy New Users to Excel 2 March 15th 05 03:58 PM


All times are GMT +1. The time now is 11:44 PM.

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

About Us

"It's about Microsoft Excel"