Hi papasioux,
it's unclear what you mean by updating references on file A, you may need to adapt the code where indicated.
Try this code, in ThisWorkbook Module (not standard module) of file B:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Workbooks.Open Filename:="E:\CV3\A.xlsm"
With ActiveWorkbook
.Sheets(1).Calculate '====> adapt the code according to the operation you need to perform on file A
End With
Dim FileToClose As String
FileToClose = "E:\CV3\A.xlsm"
Workbooks(Dir(FileToClose)).Close SaveChanges:=True
End Sub
Bookmarks