dparteka
Member
I have a main spreadsheet that houses many links to many other spreadsheets. Some of the other spreadsheets have not yet been created so they literally do not exist. I'm using the code shown below to update those links in the main-spreadsheet and that works perfectly fine but when it gets to the first link that it can't find the routine stops with a file explorer window popping up for locating the missing spreadsheet. Basically I'm looking for help with additional code that will exit and shutdown the routine when it gets to the first link/spreadsheet that it can't find and all the others after that.
Thank you for looking and any help offered will be greatly appreciated.
Thank you for looking and any help offered will be greatly appreciated.
Code:
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources, Type:=xlExcelLinks