VBA Code to Change File Extension

  • Re: VBA Code to Change File Extension


    Thanks Norie.


    The Name statement worked great - but only once. Apparently, it won't overwrite a file if it already exists. In other words, if closing.txt already exists, and I run this command:


    Code
    Name "C:\Closing.Lis" As "C:\Closing.Txt"


    Then I get the following error:


    Quote


    Run-time error '58':


    File already exists


    Any thoughts?


    m

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!