View Single Post
 
Old 07-16-2014, 04:54 AM
gbaker gbaker is offline Windows 7 32bit Office 2010 32bit
Competent Performer
 
Join Date: May 2012
Posts: 111
gbaker is on a distinguished road
Default Choose file name Save As macro

Thanks Anyway, but I found a solution and it works perfectly!!!


Code:
Sub SaveAsNew()
Dim varResult As Variant
'displays the save file dialog
varResult = Application.GetSaveAsFilename(FileFilter:= _
    "Excel Files (*.xlsx), *.xlsx, Macro Enabled Workbook" & _
    "(*.xlsm), *xlsm", Title:="Some Random Title", _
    InitialFileNameH:\Exceptions Reports\Folder to Start")
'checks to make sure the user hasn't canceled the dialog
If varResult <> False Then
    Cells(2, 1) = varResult
End If
End Sub
Thanks again for trying to help!!!
Reply With Quote