I can't reproduce the behavior that you are reporting. In my testing from
VBA:
----- VBA Programming Interface:
ActiveWorkbook.SaveAs "Test.100", xlCSV
results in a file with the name of: Test.100
ActiveWorkbook.SaveAs "Test.csv", xlCSV
results in a file with the name of: Test.csv
ActiveWorkbook.SaveAs "Test", xlCSV
results in a file with the name of: Test.csv
ActiveWorkbook.SaveAs "Test.100.csv", xlCSV
results in a file with the name of: Test.100.csv
----- Excel User Interface:
If you save the file from the Excel user interface via the "File SaveAs"
dialog box and you type in:
"Test.100" (i.e. including the double quotes!!!!)
and select "CSV (Comma delimited)(*.csv)" as the file format, then Excel
will save the file with the name:
Test.100
If you save the file from the Excel user interface via the "File SaveAs"
dialog box and you type in:
Test.100 (i.e. No double quotes!!!!)
and select "CSV (Comma delimited)(*.csv)" as the file format, then Excel
will save the file with the name:
Test.100.csv
FYI: I have "Hide extensions for known file types" unchecked in my Folder
Options View.
Troy