Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Would help if I said what line it stops on:
rw = Columns(col).Find("Y").Row "Bob Umlas, Excel MVP" wrote: You didn't specify the "rules" for what titles to use, so this routine does what you asked byt just puts the word "Title" in the yellow cell: Sub InsertY() For col = 21 To 24 rw = Columns(col).Find("Y").Row Cells(rw, col).Resize(2).Insert shift:=xlDown Cells(rw + 1, col).Interior.Color = vbYellow Cells(rw + 1, col).Value = "Title" Next End Sub Bob Umlas Excel MVP "Dee Sperling" wrote: The set up looks like this: ColU ColV ColW ColX Y N N N Y N N N N Y N N N N Y N N N Y N N N Y N N N Y N N N Y Y Columns will always be U through X and will always be sorted in this order. I need to find the first Y in each column and insert 2 rows above that row. On the blank row above the first Y, I need to highlight in yellow and put title in the first cell, such as New, Old, Existing, Deleted. Any help would be greatly appreciated. Thanks for your time, Dee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
insert rows and copying cells in column b,c, and d into new rows | Excel Programming | |||
FInd value and insert rows below | Excel Programming | |||
find number & insert rows | Excel Programming | |||
Need Macro to Find Column Heading -- if none, then insert new column | Excel Programming | |||
find row value, insert column | Excel Programming |