Do
fName = Application.GetSaveAsFilename
Loop Until fName <> ""
end sub
the above opens the SaveAs dialog and waits until the user puts in the filename, You may have to check for and add a file extension This does not save the file.
Macro
Sub SomeName()
ActiveWorkbook.SaveAs Filename:="filename", FileFormat:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
end sub
filename can be replaced by a variable or cell value
Chris.
Indifference will be the downfall of mankind, but who cares?
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.