Created
June 28, 2017 08:47
-
-
Save ndthanh/144b784571326a23c36bd8cd095ba6e5 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 ConvertToHyperlinks() | |
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 | |
Application.ActiveSheet.Hyperlinks.Add Rng, Rng.Value | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment