Hello all,
So I am just starting to venture into Excel VBA and I have been able to patch some things together with the help of this site, but I am now stumped as to how to resolve this one issue. I have a large report that has the workshop segments for a specific student registered that semester listed under their registration information and I need it to be associated with that students record for that specific semester and course. There is also the added issue that it is coming up with duplicates for each of the workshops for that one student, and there is not rhyme or reason as to how many times it duplicates it. I have over 500 students each semester and need to get these reports out to instructors on a timely basis at the start of the semester.
[TABLE="width: 700"]
<tbody>[TR]
[TD="class: xl63, width: 180, bgcolor: gray"]Site ID
[/TD]
[TD="class: xl63, width: 65, bgcolor: gray"]Status
[/TD]
[TD="class: xl63, width: 60, bgcolor: gray"]Report Month
[/TD]
[TD="class: xl63, width: 94, bgcolor: gray"]Type Of Form
[/TD]
[TD="class: xl75, width: 94, bgcolor: gray"]Training Date
[/TD]
[TD="class: xl63, width: 93, bgcolor: gray"]Course ID
[/TD]
[TD="class: xl63, width: 103, bgcolor: gray"]Student ID
[/TD]
[TD="class: xl63, width: 242, bgcolor: gray"]Workshops:
[/TD]
[/TR]
[TR]
[TD="class: xl66, width: 180, bgcolor: #E6F3E4"]SF08891
[/TD]
[TD="class: xl66, width: 65, bgcolor: #E6F3E4"]Rejected
[/TD]
[TD="class: xl66, width: 60, bgcolor: #E6F3E4"]May
[/TD]
[TD="class: xl66, width: 94, bgcolor: #E6F3E4"]Reg
[/TD]
[TD="class: xl76, width: 94, bgcolor: #E6F3E4"]4/15/2018
[/TD]
[TD="class: xl66, width: 93, bgcolor: #E6F3E4"]S088456
[/TD]
[TD="class: xl66, width: 103, bgcolor: #E6F3E4"]W008546
[/TD]
[TD="class: xl83, width: 242, bgcolor: yellow, align: left"]Need workshops that correspond to this student to be moved into Cell H3 without duplications.
[/TD]
[/TR]
[TR]
[TD="class: xl74, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl67, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl77, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl71, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl71, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl71, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl79, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl72, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl73, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl80, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 180, bgcolor: #E6F3E4"]SF08564
[/TD]
[TD="class: xl66, width: 65, bgcolor: #E6F3E4"]Rejected
[/TD]
[TD="class: xl66, width: 60, bgcolor: #E6F3E4"]May
[/TD]
[TD="class: xl66, width: 94, bgcolor: #E6F3E4"]Reg
[/TD]
[TD="class: xl76, width: 94, bgcolor: #E6F3E4"]4/15/2018
[/TD]
[TD="class: xl66, width: 93, bgcolor: #E6F3E4"]S054685
[/TD]
[TD="class: xl66, width: 103, bgcolor: #E6F3E4"]W004685
[/TD]
[TD="class: xl83, width: 242, bgcolor: yellow, align: left"]Need workshops that correspond to this student to be moved into Cell H9 without duplications.
[/TD]
[/TR]
[TR]
[TD="class: xl74, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl68, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl81, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl72, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl73, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl80, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
So I am just starting to venture into Excel VBA and I have been able to patch some things together with the help of this site, but I am now stumped as to how to resolve this one issue. I have a large report that has the workshop segments for a specific student registered that semester listed under their registration information and I need it to be associated with that students record for that specific semester and course. There is also the added issue that it is coming up with duplicates for each of the workshops for that one student, and there is not rhyme or reason as to how many times it duplicates it. I have over 500 students each semester and need to get these reports out to instructors on a timely basis at the start of the semester.
[TABLE="width: 700"]
<tbody>[TR]
[TD="class: xl63, width: 180, bgcolor: gray"]Site ID
[/TD]
[TD="class: xl63, width: 65, bgcolor: gray"]Status
[/TD]
[TD="class: xl63, width: 60, bgcolor: gray"]Report Month
[/TD]
[TD="class: xl63, width: 94, bgcolor: gray"]Type Of Form
[/TD]
[TD="class: xl75, width: 94, bgcolor: gray"]Training Date
[/TD]
[TD="class: xl63, width: 93, bgcolor: gray"]Course ID
[/TD]
[TD="class: xl63, width: 103, bgcolor: gray"]Student ID
[/TD]
[TD="class: xl63, width: 242, bgcolor: gray"]Workshops:
[/TD]
[/TR]
[TR]
[TD="class: xl66, width: 180, bgcolor: #E6F3E4"]SF08891
[/TD]
[TD="class: xl66, width: 65, bgcolor: #E6F3E4"]Rejected
[/TD]
[TD="class: xl66, width: 60, bgcolor: #E6F3E4"]May
[/TD]
[TD="class: xl66, width: 94, bgcolor: #E6F3E4"]Reg
[/TD]
[TD="class: xl76, width: 94, bgcolor: #E6F3E4"]4/15/2018
[/TD]
[TD="class: xl66, width: 93, bgcolor: #E6F3E4"]S088456
[/TD]
[TD="class: xl66, width: 103, bgcolor: #E6F3E4"]W008546
[/TD]
[TD="class: xl83, width: 242, bgcolor: yellow, align: left"]Need workshops that correspond to this student to be moved into Cell H3 without duplications.
[/TD]
[/TR]
[TR]
[TD="class: xl74, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl67, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl77, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl71, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl71, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl71, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl79, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl72, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl73, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl80, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 180, bgcolor: #E6F3E4"]SF08564
[/TD]
[TD="class: xl66, width: 65, bgcolor: #E6F3E4"]Rejected
[/TD]
[TD="class: xl66, width: 60, bgcolor: #E6F3E4"]May
[/TD]
[TD="class: xl66, width: 94, bgcolor: #E6F3E4"]Reg
[/TD]
[TD="class: xl76, width: 94, bgcolor: #E6F3E4"]4/15/2018
[/TD]
[TD="class: xl66, width: 93, bgcolor: #E6F3E4"]S054685
[/TD]
[TD="class: xl66, width: 103, bgcolor: #E6F3E4"]W004685
[/TD]
[TD="class: xl83, width: 242, bgcolor: yellow, align: left"]Need workshops that correspond to this student to be moved into Cell H9 without duplications.
[/TD]
[/TR]
[TR]
[TD="class: xl74, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl68, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl81, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl68, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](013) Harm Reduction
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl78, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl70, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl72, width: 180, bgcolor: transparent"](201) Writing Skills
[/TD]
[TD="class: xl73, width: 65, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 60, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl80, width: 94, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 93, bgcolor: transparent"][/TD]
[TD="class: xl73, width: 103, bgcolor: transparent"][/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]