Skip to content

Instantly share code, notes, and snippets.

@tekk555
Last active February 7, 2023 02:04
Show Gist options
  • Save tekk555/d3e46acb668d972ebdc8993d584479ff to your computer and use it in GitHub Desktop.
Save tekk555/d3e46acb668d972ebdc8993d584479ff to your computer and use it in GitHub Desktop.
Excelのリンク解除
Sub RemoveLink()
Dim wb As Workbook
Set wb = Application.ActiveWorkbook
If Not IsEmpty(wb.LinkSources(xlExcelLinks)) Then
For Each link In wb.LinkSources(xlExcelLinks)
wb.BreakLink link, xlLinkTypeExcelLinks
Next link
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment