The Excel GetSaveAsFilename Method


The GetSaveAsFilename method is very similar to the GetOpenFilename method. It displays a Save As dialog box and lets the user select (or specify) a file. It returns a filename and path but doesn't take any action. Like the GetOpenFilename method, all of the GetSaveAsFilename method's arguments are optional.

The syntax for this method is:

 Application.GetSaveAsFilename(InitialFilename, FileFilter, FilterIndex, Title, ButtonText) 

The arguments are:

  • InitialFilename : Optional. Specifies the suggested filename.

  • FileFilter : Optional. A string specifying file-filtering criteria.

  • FilterIndex : Optional. The index number of the default file-filtering criteria.

  • Title : Optional. The title of the dialog box.

  • ButtonText : For Macintosh only.




Excel 2007 Power Programming with VBA
Excel 2007 Power Programming with VBA (Mr. Spreadsheets Bookshelf)
ISBN: 0470044012
EAN: 2147483647
Year: 2007
Pages: 319

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net