#1   Report Post  
Posted to microsoft.public.excel.misc
Jerry Schlick
 
Posts: n/a
Default excel - auto spacing

is there a way to do an auto spacing in excel. When I have a large amount of
data.

See example

Aby Abraham Moozikkal-91997 02/23/06 7:43AM EST
Aby Abraham Moozikkal-91997 02/23/06 8:18AM EST
Aditha Suresh Bhatia 02/01/06 1:02AM EST
Aditha Suresh Bhatia 02/01/06 1:07AM EST

Is there a way to have excel insert either 1 or 2 blank lines

Aby Abraham Moozikkal-91997 02/23/06 7:43AM EST
Aby Abraham Moozikkal-91997 02/23/06 8:18AM EST

Aditha Suresh Bhatia 02/01/06 1:02AM EST
Aditha Suresh Bhatia 02/01/06 1:07AM EST

This would save me a huge amount of time on a monthy report I have to compile


  #2   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default excel - auto spacing

Jerry

Can you go with a macro that inserts 1 blank row at each change in data in
Column A?

Sub InsertRow_At_Change()
Dim i As Long
With Application
.Calculation = xlManual
.ScreenUpdating = False
End With
For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
If Cells(i - 1, 1) < Cells(i, 1) Then _
Cells(i, 1).Resize(1, 1).EntireRow.Insert
' Resize(2,1) for 2 blank rows
Next i
With Application
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
End Sub


Gord Dibben MS Excel MVP

On Thu, 2 Mar 2006 18:44:26 -0800, Jerry Schlick <Jerry
wrote:

is there a way to do an auto spacing in excel. When I have a large amount of
data.

See example

Aby Abraham Moozikkal-91997 02/23/06 7:43AM EST
Aby Abraham Moozikkal-91997 02/23/06 8:18AM EST
Aditha Suresh Bhatia 02/01/06 1:02AM EST
Aditha Suresh Bhatia 02/01/06 1:07AM EST

Is there a way to have excel insert either 1 or 2 blank lines

Aby Abraham Moozikkal-91997 02/23/06 7:43AM EST
Aby Abraham Moozikkal-91997 02/23/06 8:18AM EST

Aditha Suresh Bhatia 02/01/06 1:02AM EST
Aditha Suresh Bhatia 02/01/06 1:07AM EST

This would save me a huge amount of time on a monthy report I have to compile


  #3   Report Post  
Posted to microsoft.public.excel.misc
Jerry Schlick
 
Posts: n/a
Default excel - auto spacing

AWESOME it worked perfectly.

Thanks for the help

Jerry

"Gord Dibben" wrote:

Jerry

Can you go with a macro that inserts 1 blank row at each change in data in
Column A?

Sub InsertRow_At_Change()
Dim i As Long
With Application
.Calculation = xlManual
.ScreenUpdating = False
End With
For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
If Cells(i - 1, 1) < Cells(i, 1) Then _
Cells(i, 1).Resize(1, 1).EntireRow.Insert
' Resize(2,1) for 2 blank rows
Next i
With Application
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
End Sub


Gord Dibben MS Excel MVP

On Thu, 2 Mar 2006 18:44:26 -0800, Jerry Schlick <Jerry
wrote:

is there a way to do an auto spacing in excel. When I have a large amount of
data.

See example

Aby Abraham Moozikkal-91997 02/23/06 7:43AM EST
Aby Abraham Moozikkal-91997 02/23/06 8:18AM EST
Aditha Suresh Bhatia 02/01/06 1:02AM EST
Aditha Suresh Bhatia 02/01/06 1:07AM EST

Is there a way to have excel insert either 1 or 2 blank lines

Aby Abraham Moozikkal-91997 02/23/06 7:43AM EST
Aby Abraham Moozikkal-91997 02/23/06 8:18AM EST

Aditha Suresh Bhatia 02/01/06 1:02AM EST
Aditha Suresh Bhatia 02/01/06 1:07AM EST

This would save me a huge amount of time on a monthy report I have to compile



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
unhide menu bar in excel - just disappeared Sean Setting up and Configuration of Excel 12 April 4th 23 11:19 AM
Which Excel version has the slide transparency in format auto shap LeLearning Excel Discussion (Misc queries) 2 February 18th 06 03:22 PM
Excel Auto format for Monday Wednesdays Jim Fisher Excel Discussion (Misc queries) 1 February 8th 06 02:45 AM
Excel 2000 Auto Opens 24 files on startup CSUFAlex Excel Discussion (Misc queries) 7 January 20th 06 02:30 AM
Excel e-mail hyperlink-how can I disable this auto feature RobJJ Excel Discussion (Misc queries) 0 January 3rd 06 07:07 PM


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