Got this by recording a macro in Excel 2000
ChDir "C:\WUTemp"
ActiveWorkbook.SaveAs Filename:="C:\WUTemp\Test.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
dim wbn as string
wbn = Sheets("MySheet").Range("A1").Text
ChDir "C:\WUTemp"
ActiveWorkbook.SaveAs Filename:="C:\WUTemp\" & wbn, FileFormat:=xlNormal
_
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
You can also add a variable for DhDir
dim dir as string
dir = "C:\MyFolder\"
ActiveWorkbook.SaveAs Filename:=dir & wbn
--
steveB
Remove "AYN" from email to respond
"gtton" wrote in
message ...
Hi, how do I get the "File Name" window in the "Save As" dialog to show
the word entered in cell A1?
Thanks, Glory
sub saveas ()
Application.Dialogs(xlDialogSaveAs).Show
end sub
--
gtton
------------------------------------------------------------------------
gtton's Profile:
http://www.excelforum.com/member.php...o&userid=24721
View this thread: http://www.excelforum.com/showthread...hreadid=385399