try thisworkbook.saveas
or workbooks("the nameofyour work book").saveas
depending where you have your code