Lyndsey_11
New Member
- Joined
- Sep 27, 2017
- Messages
- 3
Hello everyone,
I'm in desperate need some some VBA help!
I have a number of identical files saved in a folder which I basically need to combine into one report.
The format of each file is as follows -
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Employee Name[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Employee Grade[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Employee Mark[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 1[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 2[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 3[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 4[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 5[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 6[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to extract the above information from each individual file in the folder, and combine into one file in the following format -
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 1[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 2[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 3[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 4[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 5[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 6[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD]Employee Name (2)[/TD]
[TD]Employee Grade (2)[/TD]
[TD]Employee Mark (2)[/TD]
[TD]Objective 1[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD]Employee Name (2)[/TD]
[TD]Employee Grade (2)[/TD]
[TD]Employee Mark (2)[/TD]
[TD]Objective 2[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD]etc...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hopefully that makes some sense!
Does anyone have some code that can do that please?
Many thanks in advance!
I'm in desperate need some some VBA help!
I have a number of identical files saved in a folder which I basically need to combine into one report.
The format of each file is as follows -
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Employee Name[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Employee Grade[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Employee Mark[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 1[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 2[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 3[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 4[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 5[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Objective 6[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD][/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to extract the above information from each individual file in the folder, and combine into one file in the following format -
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 1[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 2[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 3[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 4[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 5[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD]Employee Name (1)[/TD]
[TD]Employee Grade (1)[/TD]
[TD]Employee Mark (1)[/TD]
[TD]Objective 6[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD]Employee Name (2)[/TD]
[TD]Employee Grade (2)[/TD]
[TD]Employee Mark (2)[/TD]
[TD]Objective 1[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD]Employee Name (2)[/TD]
[TD]Employee Grade (2)[/TD]
[TD]Employee Mark (2)[/TD]
[TD]Objective 2[/TD]
[TD]Mark[/TD]
[TD]What[/TD]
[TD]How[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD]etc...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hopefully that makes some sense!
Does anyone have some code that can do that please?
Many thanks in advance!