Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a Template (xlt) that when the user clicks the save button (on the
excel menu bar), i'm running the following code so that it will save the new filename in a specific desired format. Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Dim fname, pname fname = Range("SiteCity") fname = "Charter - " & fname Application.GetSaveAsFilename (fname) End Sub However it is actually saving the file twice, once from my code, then normally from Excel as when this sub ends it follows the normal save routine (since the user clicked the save button). Q1: Is there any way to stop the second routine from saving the file? Q2: Is there a way to ensure the recommend path is also set the "My Documents"? thx, Ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SaveAs Dialog comes up twice??? | Excel Programming | |||
SaveAs Dialog Box | Excel Programming | |||
SaveAs dialog | Excel Discussion (Misc queries) | |||
SaveAs Dialog box | Excel Programming | |||
Saveas Dialog Box | Excel Programming |