Created
July 11, 2017 10:01
-
-
Save ndthanh/563bc639e5b9a5f1ad11b1035ba01889 to your computer and use it in GitHub Desktop.
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 Extracthyperlinks() | |
'Updateby20140318 | |
Dim Rng As Range | |
Dim WorkRng As Range | |
On Error Resume Next | |
xTitleId = "Hoc Excel Online" | |
Set WorkRng = Application.Selection | |
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8) | |
For Each Rng In WorkRng | |
If Rng.Hyperlinks.Count > 0 Then | |
Rng.Value = Rng.Hyperlinks.Item(1).Address | |
End If | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment