D
DRK
I've tried the below code in ThisWorkbook in both Workbook_Activate() and
Workbook_Open()
ThisWorkbook.UpdateLink Name:=ThisWorkbook.LinkSources
or
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources
Both throw a run-time error '1004'. Message is 'UpdateLink' of object
'_Workbook' failed.
The other workbook is not open yet. Is this the cause of the problem? If so
what can I do about it? Do I need to open them simultaneously? If so, how can
I do that?
Workbook_Open()
ThisWorkbook.UpdateLink Name:=ThisWorkbook.LinkSources
or
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources
Both throw a run-time error '1004'. Message is 'UpdateLink' of object
'_Workbook' failed.
The other workbook is not open yet. Is this the cause of the problem? If so
what can I do about it? Do I need to open them simultaneously? If so, how can
I do that?