Last active
February 7, 2023 02:04
-
-
Save tekk555/d3e46acb668d972ebdc8993d584479ff to your computer and use it in GitHub Desktop.
Excelのリンク解除
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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