Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I insert a blank line when category changes
In Excel 2003, I have a spreadsheet with over 1500 rows that I would like to
insert a blank row everytime the category changes in one row. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I insert a blank line when category changes
for i =cells(rows.count,"a").end(xlup).row to 2 step -1
if cells(i,"a")=categorychange then rows(i).insert next -- Don Guillett SalesAid Software "castleds" wrote in message ... In Excel 2003, I have a spreadsheet with over 1500 rows that I would like to insert a blank row everytime the category changes in one row. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I insert a blank line when category changes
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 Next i With Application .Calculation = xlAutomatic .ScreenUpdating = True End With End Sub Gord Dibben MS Excel MVP On Wed, 27 Sep 2006 06:35:01 -0700, castleds wrote: In Excel 2003, I have a spreadsheet with over 1500 rows that I would like to insert a blank row everytime the category changes in one row. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How, on a line chart, to skip blank entry rather than plot as 0? | Charts and Charting in Excel | |||
insert a blank in every second line of a row | Excel Discussion (Misc queries) | |||
How can I insert a blank row after every row with data with Excel | Excel Discussion (Misc queries) | |||
How do I insert manual line breaks in excel? | Excel Worksheet Functions | |||
Challenging Charting | Charts and Charting in Excel |