Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert Row when data is different

I have a range of @ 8000 rows. This range contains data for differen
customers. Each customer can and will appear on more than one row.

What i want is to insert 6 blank rows when a new customer begins.

Hope this makes sense!

Please help!!

Thanks.

Tiffan

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Insert Row when data is different

Tiffany

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(6, 1).EntireRow.Insert
Next i
With Application
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
End Sub


Gord Dibben Excel MVP

On Fri, 20 Aug 2004 15:02:34 -0500, tratliff
wrote:

I have a range of @ 8000 rows. This range contains data for different
customers. Each customer can and will appear on more than one row.

What i want is to insert 6 blank rows when a new customer begins.

Hope this makes sense!

Please help!!

Thanks.

Tiffany


---
Message posted from http://www.ExcelForum.com/


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
How do I insert a row after every row of data in XL? jetanddug Excel Discussion (Misc queries) 5 November 2nd 09 04:25 PM
Data Validation - Insert Row Alex Excel Worksheet Functions 3 February 29th 08 04:48 PM
MULTIPLE DATA - How to insert new data into existing data.... Rodorodo Excel Discussion (Misc queries) 0 December 15th 06 11:50 PM
insert data Smoop Excel Worksheet Functions 1 October 19th 06 08:32 AM
Import Data: on insert, shift data down and not right Raminhos Excel Discussion (Misc queries) 1 February 17th 05 02:08 PM


All times are GMT +1. The time now is 03:18 PM.

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"