I have a worksheet that sorts out different jobs and completion dates that I am attempting to automate. The last thing I need is to have certain parts of the worksheet merge together. So basically in the sheet there are grey rows that represent the main job and underneath there are white rows that describe certain tasks. I need code that will go through the worksheet and for a specific column, take the white parts in between two gray rows and merge them together because the information is the same. I need it to be dynamic because sometimes there are no tasks in between two greys ( grey = 15) and sometimes there are 5. Can anyone help me out.
ex/
PSM 252 Data Management 3 01-Apr-05
PSM 252 Data Management 3 01-Apr-05
PSM 252 Data Management 3 01-Apr-05
MFTS 177 Research 3 01-Apr-05
PSM 389 Data Management 1 13-Apr-05
so the two record numbers that say 252 in black under the original in grey would be merged.