So I've been trying to convert CSV files to XLS. However, this line of code keeps giving me problems:

oExcel.SaveAs FileName:=FilePath_XLS(TableName), FileFormat:=xlNormal

The FilePath_XLS returns correctly... I just can't figure out what's going wrong but it will not execute..

PS, to clarify, my issue is definitely with the FileFormat

Never mind, I figured it out. The appropriate FileFormat was 56.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.