ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save As Change (https://www.excelbanter.com/excel-programming/329658-save-change.html)

Elena

Save As Change
 
I need to change the Save As on the File Drop Down menu to not be the
original document. I would like to rename it as I did on exit.

I have already diabled the save and on exit it does a "save as" to the new
name. See code below:

Private Sub workbook_open()

'With CommandBars("File")
With Me.Application.CommandBars("File")
..Controls(4).Enabled = False 'Save Button

End With
Me.Application.CommandBars("standard").Controls("S ave").Enabled = False

End Sub



Private Sub Workbook_BeforeClose(Cancel As Boolean)

Me.Application.Dialogs(xlDialogSaveAs).Show "C:\New_Expense_Report.xls"
With Me.Application.CommandBars("File")
.Controls(4).Enabled = True
End With

Me.Application.CommandBars("Standard").Controls("S ave").Enabled = True

End Sub


Any advice would be appreciated!
Thanks in Advance


All times are GMT +1. The time now is 09:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com