Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save as box
Hello! I was wondering how to call up the "save as" box with code (as if you went to File and selected Save As...). I tried through the macro recorder, but it wouldn't let me stop recording when the box was open. Thanks, ME -- EMoe ------------------------------------------------------------------------ EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183 View this thread: http://www.excelforum.com/showthread...hreadid=473255 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save as box
You could adapt this:
Sub SaveAs() Dim flname As String Dim fullName As Variant Dim filter As String flname = "SaveName" filter = "Excel Files (*.xls), *.xls" fullName = Application.GetSaveAsFilename(flname, filter, , _ "Save File as...") If fullName < False Then Application.DisplayAlerts = False ThisWorkbook.SaveAs fullName Application.DisplayAlerts = True End If End Sub Hope this helps Rowan EMoe wrote: Hello! I was wondering how to call up the "save as" box with code (as if you went to File and selected Save As...). I tried through the macro recorder, but it wouldn't let me stop recording when the box was open. Thanks, ME |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save as box
Thanks Rowan, This code works perfectly. This is what I was looking for. Regards, EMoe :) -- EMoe ------------------------------------------------------------------------ EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183 View this thread: http://www.excelforum.com/showthread...hreadid=473255 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save as box
You're welcome.
EMoe wrote: Thanks Rowan, This code works perfectly. This is what I was looking for. Regards, EMoe :) |
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) | |||
when i save xls file, debug script is running and canno't save fil | Excel Discussion (Misc queries) | |||
Why system asks me to save change even after I call save method(VB.NET) | Excel Programming |