Hi Peter,
A. Your code in regards to the text in brackets, indeed erases the FOURTH line, which is the desired outcome and eliminates completely its data. I don't know if they are transfered in the AL2 cell and then are replaced by the data of the line 3. Below I am giving you an example. We can either have a record splitedin two rows (Case A) or splited in thre rows (Case B). The first row includes the headers so it will remain as it is. No need to do anything with it.
So in both cases A & B I need the code to return the data like the table with the desired outcome. Lines 3 or and 4 where it exists to be deleted comlpetely. In the case A the data of the cell AK3 have to be moved to the cell AL2 to have all the data in one line and in the case of a forth line with text in brackets the complete line has to be deleted including also the data in the AK4 cell.
Case A
<colgroup><col style="mso-width-source:userset;mso-width-alt:4059; width:83pt" width="111" span="4"> </colgroup><tbody>
[TD="class: xl65, width: 111"][/TD]
[TD="class: xl65, width: 111"]AI[/TD]
[TD="class: xl65, width: 111"]AJ[/TD]
[TD="class: xl65, width: 111"]AK[/TD]
[TD="class: xl65, width: 111"]1[/TD]
[TD="class: xl65, width: 111"]Nickname[/TD]
[TD="class: xl65, width: 111"]Age[/TD]
[TD="class: xl65, width: 111"]Name[/TD]
[TD="class: xl65, width: 111"]2
[/TD]
[TD="class: xl65, width: 111"]Thunder[/TD]
[TD="class: xl65, width: 111"]30[/TD]
[TD="class: xl66"]John[/TD]
[TD="class: xl66"]3[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl65, width: 111"]Wick[/TD]
</tbody>
<colgroup><col style="mso-width-source:userset;mso-width-alt:4059; width:83pt" width="111" span="4"> </colgroup><tbody>
[TD="width: 111"]Case B[/TD]
[TD="width: 111"][/TD]
[TD="width: 111"][/TD]
[TD="width: 111"][/TD]
[TD="class: xl65, width: 111"][/TD]
[TD="class: xl65, width: 111"]AI[/TD]
[TD="class: xl65, width: 111"]AJ[/TD]
[TD="class: xl65, width: 111"]AK[/TD]
[TD="class: xl65, width: 111"]1[/TD]
[TD="class: xl65, width: 111"]Nickname[/TD]
[TD="class: xl65, width: 111"]Age[/TD]
[TD="class: xl65, width: 111"]Name[/TD]
[TD="class: xl65, width: 111"]2[/TD]
[TD="class: xl65, width: 111"]Thunder[/TD]
[TD="class: xl65, width: 111"]30[/TD]
[TD="class: xl66"]John[/TD]
[TD="class: xl66"]3[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl65, width: 111"]Wick[/TD]
[TD="class: xl65, width: 111"]4
[/TD]
[TD="class: xl65, width: 111"][Wick][/TD]
</tbody>
[TABLE="width: 508"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD="colspan: 2"]Desired Outcome[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]AI[/TD]
[TD]AJ[/TD]
[TD]AK[/TD]
[TD]AL[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Nickname[/TD]
[TD]Age[/TD]
[TD]Name[/TD]
[TD]Surname[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Thunder[/TD]
[TD]30[/TD]
[TD]John[/TD]
[TD]Wick[/TD]
[/TR]
</tbody>[/TABLE]
B. There are also cases where the AK2 cell is completely blank so in this occassion the line has to be erased because if there is no name there is no reason this libe to exist.
<colgroup><col style="mso-width-source:userset;mso-width-alt:4059; width:83pt" width="111" span="4"> </colgroup><tbody>
[TD="width: 111"]Case C
[/TD]
[TD="width: 111"][/TD]
[TD="width: 111"][/TD]
[TD="width: 111"][/TD]
[TD="class: xl65, width: 111"][/TD]
[TD="class: xl65, width: 111"]AI[/TD]
[TD="class: xl65, width: 111"]AJ[/TD]
[TD="class: xl65, width: 111"]AK[/TD]
[TD="class: xl65, width: 111"]1[/TD]
[TD="class: xl65, width: 111"]Nickname[/TD]
[TD="class: xl65, width: 111"]Age[/TD]
[TD="class: xl65, width: 111"]Name[/TD]
[TD="class: xl65, width: 111"]2[/TD]
[TD="class: xl65, width: 111"]Thunder[/TD]
[TD="class: xl65, width: 111"]30[/TD]
[TD="class: xl66"][/TD]
</tbody>
[TABLE="width: 444"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD]Desired outcome[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]AI[/TD]
[TD]AJ[/TD]
[TD]AK[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Nickname[/TD]
[TD]Age[/TD]
[TD]Name[/TD]
[/TR]
</tbody>[/TABLE]
I hope everything is clear no and sorry for my english but i am not a native speaker...