Interiority
New Member
- Joined
- Jun 12, 2014
- Messages
- 7
Hi all
I'm trying to write a macro that will remove duplicate data in a table. Essentially, my table looks like this:
[TABLE="class: grid, width: 100, align: left"]
<tbody>[TR]
[TD]Applicant Name[/TD]
[TD]Personal Statement[/TD]
[TD]Work History[/TD]
[TD]Education History[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH1[/TD]
[TD]Applicant1_EH1[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH1[/TD]
[TD]Applicant1_EH2[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH2[/TD]
[TD]Applicant1_EH1[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH2[/TD]
[TD]Applicant1_EH2[/TD]
[/TR]
[TR]
[TD]Applicant2[/TD]
[TD]Applicant2_PS[/TD]
[TD]Applicant2_WH1[/TD]
[TD]Applicant2_EH1[/TD]
[/TR]
[TR]
[TD]Applicant2[/TD]
[TD]Applicant2_PS[/TD]
[TD]Applicant2_WH1[/TD]
[TD]Applicant2_EH2[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH1[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH2[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH3[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
</tbody>[/TABLE]
And I want it to look like this:
[TABLE="class: grid, width: 75, align: left"]
<tbody>[TR]
[TD]Applicant Name[/TD]
[TD]Personal Statement[/TD]
[TD]Work History[/TD]
[TD]Education History[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH1[/TD]
[TD]Applicant1_EH1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Applicant1_WH2[/TD]
[TD]Applicant1_EH2[/TD]
[/TR]
[TR]
[TD]Applicant2[/TD]
[TD]Applicant2_PS[/TD]
[TD]Applicant2_WH1[/TD]
[TD]Applicant2_EH1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Applicant2_EH2[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH1[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Applicant3_WH2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Applicant3_WH3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
....and so on.
Does anyone have any ideas how I can go about doing this? I'm drawing a real blank so far
I'm trying to write a macro that will remove duplicate data in a table. Essentially, my table looks like this:
[TABLE="class: grid, width: 100, align: left"]
<tbody>[TR]
[TD]Applicant Name[/TD]
[TD]Personal Statement[/TD]
[TD]Work History[/TD]
[TD]Education History[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH1[/TD]
[TD]Applicant1_EH1[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH1[/TD]
[TD]Applicant1_EH2[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH2[/TD]
[TD]Applicant1_EH1[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH2[/TD]
[TD]Applicant1_EH2[/TD]
[/TR]
[TR]
[TD]Applicant2[/TD]
[TD]Applicant2_PS[/TD]
[TD]Applicant2_WH1[/TD]
[TD]Applicant2_EH1[/TD]
[/TR]
[TR]
[TD]Applicant2[/TD]
[TD]Applicant2_PS[/TD]
[TD]Applicant2_WH1[/TD]
[TD]Applicant2_EH2[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH1[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH2[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH3[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
</tbody>[/TABLE]
And I want it to look like this:
[TABLE="class: grid, width: 75, align: left"]
<tbody>[TR]
[TD]Applicant Name[/TD]
[TD]Personal Statement[/TD]
[TD]Work History[/TD]
[TD]Education History[/TD]
[/TR]
[TR]
[TD]Applicant1[/TD]
[TD]Applicant1_PS[/TD]
[TD]Applicant1_WH1[/TD]
[TD]Applicant1_EH1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Applicant1_WH2[/TD]
[TD]Applicant1_EH2[/TD]
[/TR]
[TR]
[TD]Applicant2[/TD]
[TD]Applicant2_PS[/TD]
[TD]Applicant2_WH1[/TD]
[TD]Applicant2_EH1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Applicant2_EH2[/TD]
[/TR]
[TR]
[TD]Applicant3[/TD]
[TD]Applicant3_PS[/TD]
[TD]Applicant3_WH1[/TD]
[TD]Applicant3_EH1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Applicant3_WH2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Applicant3_WH3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
....and so on.
Does anyone have any ideas how I can go about doing this? I'm drawing a real blank so far