View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default VBA Excel Help - Filename

If Not ActiveWorkbook.Saved Then
If ActiveWorkbook.Path = "" Then
filesavename = Excel.Application.GetSaveAsFil*ename( _
filefilter:="Excel Files (*.xls), *.xls")
ThisWorkbook.SaveAs filename:=filesavename
Else
ActiveWorkbook.Save
End If
End If

--

Vasant