Dim FileSaveName as variant
filesavename = application.getsaveasfilename(....)
if filesavename = false then
'user hit cancel
exit sub
end if
'otherwise, keep going:
activeworkbook.saveas filename:=filesaveasname
ljsmith wrote:
That may be the ticket.
fileSaveName = Application.GetSaveAsFilename( _
fileName & ".xls", fileFilter:="Microsoft Excel Workbook (*.xls),
*.xls")
is the code I'm using, both fileName and fileSaveName are listed as
strings.
If I'm following what you're saying, it should be:
dim fileSaveName as Variant
rather than
dim fileSaveName as String
Correct?
Or should it be:
dim fileName as Variant
rather than
dim fileName as String
--
ljsmith
------------------------------------------------------------------------
ljsmith's Profile: http://www.excelforum.com/member.php...o&userid=30531
View this thread: http://www.excelforum.com/showthread...hreadid=501828
--
Dave Peterson