Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Stewart
Here's a trick from Tom Ogilvy: Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Dim F As Variant If SaveAsUI = True Then Cancel = True F = Application.GetSaveAsFilename(Me.Name, _ "Workbook (*.xls), *.xls") If F = False Then Exit Sub Me.SaveAs CStr(F) MsgBox Me.FullName, , "After save !!!" End If End Sub HTH. Best wishes Harald "S. I. Becker" skrev i melding ... Is there an event that you can trap after a workbook has been saved? My issue is this: I have some objects in a collection indexed by workbook name, thus each object in the collection is associated with a particular workbook. When the user changes the name of the workbook (by Save As...) the keys need to be updated. I have written the code to do the updating, including getting the previous name (via the BeforeSave event) but no event to trigger it on. Stewart |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to trap delete row event and hide column event? | Excel Programming | |||
user form-on open event? keydown event? | Excel Programming | |||
Event Procedures: Event on Worksheet to fire Event on another Worksheet | Excel Programming | |||
change event/after update event?? | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |