Hi
I have written some code which opens a folder and display a list of CSV files.
(This would be done after a user has downloaded a report from a website).
However, I need to write code that verifies the contents of the file i.e it
i) checks how many columns there are (there are 8 in total) and
ii) checks that the titles of the columns are correct.
Does anyone know how to do this in VBA?
The column titles are shown below. Thanks in advance!
[TABLE="width: 542"]
<tbody>[TR]
[TD="width: 67"]Client[/TD]
[TD="width: 64"]Project[/TD]
[TD="width: 88"]Work Item[/TD]
[TD="width: 62"]User[/TD]
[TD="width: 55"]Date[/TD]
[TD="width: 65"]Hours[/TD]
[TD="width: 89"]Time Code[/TD]
[TD="width: 52"]State[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 512"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]
[/TD]
[/TR]
</tbody>[/TABLE]
I have written some code which opens a folder and display a list of CSV files.
(This would be done after a user has downloaded a report from a website).
However, I need to write code that verifies the contents of the file i.e it
i) checks how many columns there are (there are 8 in total) and
ii) checks that the titles of the columns are correct.
Does anyone know how to do this in VBA?
The column titles are shown below. Thanks in advance!
[TABLE="width: 542"]
<tbody>[TR]
[TD="width: 67"]Client[/TD]
[TD="width: 64"]Project[/TD]
[TD="width: 88"]Work Item[/TD]
[TD="width: 62"]User[/TD]
[TD="width: 55"]Date[/TD]
[TD="width: 65"]Hours[/TD]
[TD="width: 89"]Time Code[/TD]
[TD="width: 52"]State[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 512"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]
[/TD]
[/TR]
</tbody>[/TABLE]