1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Private Sub Workbook_Open()
Dim wk1 As Workbook, wk2 As Workbook
Set c = ThisWorkbook
Application.Workbooks.Open ("Z:\Performance industrielle\RAPPORT QUOTIDIEN USINE\cub_colismvt.xlsm"), , True
Set wk1= ActiveWorkbook
Application.Workbooks.Open ("Z:\Performance industrielle\RAPPORT QUOTIDIEN USINE\cub_interv_maint.xlsm"), , True
Set wk2= ActiveWorkbook
c.Activate
Set c = Nothing
With ActiveWorkbook:
.UpdateRemoteReferences = True:
.SaveLinkValues = True:
End With
wk1.Close True
wk2.Close True
Application.AskToUpdateLinks = True
End Sub |
Partager