Created
July 25, 2016 03:42
-
-
Save ricdeez/fdbf12e74af2fc06d7b84fade57399f3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Macro3() | |
Dim sht As Excel.Worksheet | |
Dim rge As Excel.Range | |
Dim switch As String | |
Set sht = Excel.Worksheets("SUMMARY") | |
lastRow = sht.Range("B65536").End(xlUp).Row | |
For i = 3 To lastRow | |
Set rge = sht.Range("B" & i) | |
switch = rge.Value | |
sht.Hyperlinks.Add Anchor:=rge, Address:="", SubAddress:= _ | |
"'" & switch & "'!C2", TextToDisplay:=switch | |
Next i | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment