The VBA code that I posted was tested and it worked for me.
(I may have an “add appropriate extension” option selected somewhere)
Also, with Mac’s, the file extension is just a part of the name, files can be opened and worked with or without extensions.
If you look in the VB Editor’s Object Browser, keyword xlFileFormat will show a list of file format constants, like xlCSV and xlWorkbookNormal