Hi all,
I have a form with a textbox with the "LinkedIn" profile address that I want the user to be able to pull up when they click a command button. It works, except that the link opens twice in two tabs in the browser. I've checked over the code for the whole form, and this code is only being run from the click event of the button, so why would it open the same tab twice? Here's the code:
I have a form with a textbox with the "LinkedIn" profile address that I want the user to be able to pull up when they click a command button. It works, except that the link opens twice in two tabs in the browser. I've checked over the code for the whole form, and this code is only being run from the click event of the button, so why would it open the same tab twice? Here's the code:
Private Sub cmd_Click()
Dim ctl As CommandButton
Dim txthyper As String
Set ctl = Me!cmd
txthyper = Me!LinkedIn
With ctl
.HyperlinkAddress = txthyper
.Hyperlink.Follow
End With
End Sub
Any ideas?Dim ctl As CommandButton
Dim txthyper As String
Set ctl = Me!cmd
txthyper = Me!LinkedIn
With ctl
.HyperlinkAddress = txthyper
.Hyperlink.Follow
End With
End Sub