Test a file to retrieve format

  • Thread starter Thread starter Ago
  • Start date Start date
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
 
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.
 
Back
Top