Hi Excel Friends
How to close all opened hyperlinked files by vba code here i have applied this below vba it's not working
and one more if i close excel workbook then close all opened hyperlinked files automatically
How to close all opened hyperlinked files by vba code here i have applied this below vba it's not working
and one more if i close excel workbook then close all opened hyperlinked files automatically
VBA Code:
Sub CloseHyperLinks()
Dim xHyperlink As Hyperlink
Dim WorkRng As Range
On Error Resume Next
Set WorkRng = Range("A2:A5")
For Each xHyperlink In WorkRng.Hyperlinks
xHyperlink.Close
xHyperlink.Quit
Next
End Sub