I created a button that triggers a website yesterday, it worked fine yesterday, but today nothing happens, this is the code
It adds a number to the link to go direct to that webpage (via login) I have put a test msgbox on the first line and rem'd out all the other lines, and the msgbox does not show. The button de-presses but nothing happens.
I have a similar button elsewhere and that works fine.
Can anyone Help
Code:
Private Sub SE_Click()
Dim ctl2 As CommandButton
Dim UTR2
UTR2 = Replace(Tax_Ref.Value, " ", "") ' Remove spaces
Set ctl2 = Me!SE
With ctl2
.HyperlinkAddress = "https://online.hmrc.gov.uk/self-assessment/ind/" & UTR2
End With
End Sub
It adds a number to the link to go direct to that webpage (via login) I have put a test msgbox on the first line and rem'd out all the other lines, and the msgbox does not show. The button de-presses but nothing happens.
I have a similar button elsewhere and that works fine.
Can anyone Help