'-------------- istruzione combo-----------
Private Sub Combo1_Change()
Me.TxTesto1 = Range("D30").Value
Me.Label9 = Range("D32").Value
End Sub
'-----------istruzione form-------------
Private Sub UserForm_Activate()
Label9 = Range("D32").Value
TxTesto1 = Range("D30").Value
End Sub
'---------istruzione Button---------------
Private Sub Vai_Click()
Dim z
Dim Link As String
If TxTesto1 = "" Then
MsgBox "Inserisci il codice ISIN"
Me.TxTesto1.SetFocus
Else
If TxTesto1 <> "" Then 'se l'inputbox è diverso da vuoto
z = Sheets("Link").Cells(7, 1) & Cells(30, 4) & Sheets("Link").Cells(7, 2) 'concatena la cella G29, D30
Cells(29, 6) = z 'mette il concatenamento in F29
If Range("f29") <> "" Then
Link = Range("f29").Value
ActiveWorkbook.FollowHyperlink Address:="" & Link, _
NewWindow:=True
End If
End If
End If
End Sub
|