• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Save copy file only when saving file as xlsm

Hi,

I have a workbook that is saved as an xlsm but is also saved as a .mht (to publish the workbook). I routinely save the file as .xlsm (this is the master copy) and then as .mht before exiting.

I would like a VBA script that automatically saves a copy of the file in a separate location as .xlsm whenever I save the file as .xlsm. I don't want the script to create a copy when I save it as .mht version.

Is this possible?

Thank you.
 
Hi !​
Yes, just using the SaveCopyAs method as you can check within VBA help …​
 
Back
Top