Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
Hi
Does anyone know how to bring up the Save As dialog box with the filename of my choice? Many thanks in advance. Libby |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
Libby,
Try something like the following: Dim FName As Variant FName = Application.GetSaveAsFilename("default_name.xls", _ "Workbook Files (*.xls),*.xls") If FName < False Then MsgBox "You choose filename: " & FName Else MsgBox "You cancelled" End If -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Libby" wrote in message ... Hi Does anyone know how to bring up the Save As dialog box with the filename of my choice? Many thanks in advance. Libby |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
Put the filename in inverted commas in brackets after the
Application.GetSaveAsFilename command, e.g. Sub savesheet() Sheets("Sheet1").Select Do fName = Application.GetSaveAsFilename("testname.xls") Loop Until fName < False ActiveWorkbook.SaveAs Filename:=fName End Sub Andrea Jones "Libby" wrote: Hi Does anyone know how to bring up the Save As dialog box with the filename of my choice? Many thanks in advance. Libby |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
Thanks Andrea :o)
"Andrea Jones" wrote: Put the filename in inverted commas in brackets after the Application.GetSaveAsFilename command, e.g. Sub savesheet() Sheets("Sheet1").Select Do fName = Application.GetSaveAsFilename("testname.xls") Loop Until fName < False ActiveWorkbook.SaveAs Filename:=fName End Sub Andrea Jones "Libby" wrote: Hi Does anyone know how to bring up the Save As dialog box with the filename of my choice? Many thanks in advance. Libby |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
Save As and save current numbers not the actual formulas and links | Excel Discussion (Misc queries) | |||
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() | Excel Discussion (Misc queries) | |||
how to get disk icon on save button of save as dialog like 2000 | Excel Discussion (Misc queries) | |||
Why system asks me to save change even after I call save method(VB.NET) | Excel Programming |