A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How can you add a blank row, per every other row, on an entire



 
 
Thread Tools Display Modes
  #1  
Old June 29th 06, 11:34 PM posted to microsoft.public.excel.misc
external usenet poster
 
Posts: n/a
Default How can you add a blank row, per every other row, on an entire

excel spreadsheet, without having to go row by row?
Ads
  #2  
Old June 30th 06, 12:04 AM posted to microsoft.public.excel.misc
external usenet poster
 
Posts: n/a
Default How can you add a blank row, per every other row, on an entire

You could do it easily with a macro.

Why would you do this?

If for appearance and better readability, just select all rows and double the
height.

Sub InsertRows()
Application.ScreenUpdating = False
Dim numRows As Integer
Dim r As Long
numRows = 1
For r = 2000 To 1 Step -1
ActiveSheet.Rows(r + 1).Resize(numRows).EntireRow.Insert
Next r
Application.ScreenUpdating = True
End Sub

Change the 2000 to whatever range you want.


Gord Dibben MS Excel MVP

On Thu, 29 Jun 2006 15:34:02 -0700, Laura >
wrote:

>excel spreadsheet, without having to go row by row?


  #3  
Old June 30th 06, 01:01 AM posted to microsoft.public.excel.misc
external usenet poster
 
Posts: n/a
Default How can you add a blank row, per every other row, on an entire



"Laura" wrote:

> excel spreadsheet, without having to go row by row?


One way would be to:
1) insert a new column next to your data
2) number the columns 1,3,5,7,etc. (use 'Fill' and then 'Series')
3) number some blank lines 2,4,6,8,etc. (use 'Fill' and then 'Series')
4) sort your data by the new column.
5) delete the new column.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a blank in Data Validation List? Pheasant Plucker® Excel Discussion (Misc queries) 10 March 20th 06 04:06 PM
Counting blank cells until value is reached Dan Excel Worksheet Functions 9 March 1st 06 01:56 PM
CONCATENATE problem with blank cells roger_home Excel Discussion (Misc queries) 1 August 17th 05 09:18 PM
Replace null string with blank cell gjcase Excel Discussion (Misc queries) 2 August 9th 05 02:13 PM
Blank Cells in Pivot Tables Greg Excel Discussion (Misc queries) 1 March 16th 05 10:23 PM


All times are GMT +1. The time now is 01:02 PM.


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