Getting “method saveas of object _workbook failed” error while trying to save an XLSM as CSV

后端 未结 5 2347
难免孤独
难免孤独 2020-12-10 12:20

I\'m trying to save a macro-enabled Excel workbook as a csv file, overwriting the old one (below I had to change the name of the folder and the Sheet, but that doesn\'t seem

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-10 13:23

    I had a similar issue however for me the problem was I was creating the Filename based on strings extracted from a workbook and sometimes these strings would have characters that can't be in a filename. Removing these characters did the trick for me!

提交回复
热议问题