The following code will save the active file (using all the default settings) into the current directory with whatever name is cell A1. No error trapping has been included for posible invalid filenames.
Code:
Sub SaveFile()
ActiveWorkbook.SaveAs Filename:=[A1]
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.