In my version of Excel (O365) the type of linksource for a link to an Excel workbook is xlExcelLinks, not xlLinkTypeExcelLinks
You could use the number 1 instead:linkSources = ThisWorkbook.linkSources(xlExcelLinks)
What version of Excel are you using?linkSources = ThisWorkbook.linkSources(1)