I am currently using this code I found here (http://software-solutions-online.com...aveasfilename/) to open a saveas dialog with VBA (trying to get the file to save as macro-free workbook with a click of a button).
Dim varResult As Variant
'displays the save file dialog
varResult = Application.GetSaveAsFilename( _
FileFilter:="Excel Files (*.xlsx), *.xlsx")
'checks to make sure the user hasn't canceled the dialog
If varResult <> False Then
Cells(2, 1) = varResult
Could someone help with changing the code so that the file would actually save?