That's correct, the variable should be a Variant. Then you can
check to see if it is False (not "False") and act accordingly.
E.g.,
fileSaveName = Application.GetSaveAsFilename( _
fileName & ".xls", fileFilter:="Microsoft Excel Workbook
(*.xls),*.xls")
If fileSaveName = False Then
' user cancelled
Else
msgbox fileSaveName
End If
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"ljsmith"
wrote in message
...
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