Save As

A

Ardy

I have this code that suppose to doa Save As Action, it goes trough
the motion, but no file is saved.

' Start Save As File Prior To resetting
Msg = "Save File Prior to Resetting the Form!"
Style = vbOKOnly
Title = "GUSD --------------- ROLA"
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Microsoft Excel Workbook (*.xls), *.xls")
If fileSaveName <> False Then
MsgBox "Save as " & fileSaveName
End If
' End Save As

Regards
Ardy
 
D

Dave Peterson

GetSaveAsFileName just returns the name that the user chose. You still have to
do the actual save yourself.

if filesavename <> false then
thisworkbook.saveas filename:=filesavename, fileformat:=xlworkbooknormal
'or Activeworkbook.saveas....
end if
 
A

Ardy

Thanks
Works Perfect
Dave said:
GetSaveAsFileName just returns the name that the user chose. You still have to
do the actual save yourself.

if filesavename <> false then
thisworkbook.saveas filename:=filesavename, fileformat:=xlworkbooknormal
'or Activeworkbook.saveas....
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top