I have a problem, because I want to make program with make hyperlink for folders, I already have this part:
Dim a As String
Dim i As Long
Dim ark1 As Worksheet
Set ark1 = Arkusz1
For i = 1 To 3
ark1.Cells(i, "A").Select
a = "TR_"& i
ActiveCell.Hyperlinks.Add Anchor:=Selection, Address:="C:/"& a, _
SubAddress:="", ScreenTip:="a", TextToDisplay:=a
Next i
End Sub
But I have folders: TR_1_Jon TR_2_Allex etc. And it is possible to make this loop that excel will be recognize only first part: "TR_1_******"?