Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code to help me insert a row in between groups o
similar data. However, it doesn't work after the first row has been inserted. Coul someone tell me what's wrong with my code? For Each c In ActiveWorkbook.Worksheets("CIT GF").Range(myrange.Address) If Cells(c.Row, 9).Value < Cells(c.Row + 1, 9).Value Then 'Address = c.Address c.EntireRow.Offset(1, 0).Select Selection.Insert Shift:=xlDown 'Range("c.Row,c.column").Offset(1, 0).Select c = c.Offset(3, 0) End If Next c Regard -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I loop through a the values in multiple rows | Excel Discussion (Misc queries) | |||
Loop relative rows | Excel Discussion (Misc queries) | |||
PIVOT TABLE Custom Column addition to calculate sum and Percentage | Excel Discussion (Misc queries) | |||
For Each Loop with Pivot Table | Excel Discussion (Misc queries) | |||
How do I delete rows and columns in With With End Loop? | Excel Programming |