Test a file to retrieve format

A

Ago

Hi,
I have to test a file in a dir from VBA (Excel 2000) to
verify if the format is Excel, csv or other.
Do anyone know how this could be done?

Thank you

Ago
 
J

Jim Rech

I think you have to go by the file extension. To actually open the file and
examine its bytes would be a tough row to hoe.
 
Top