stmarl
New Member
- Joined
- Jul 13, 2018
- Messages
- 4
Run-Time Error '13':
Type mismatch
Type mismatch
Code:
[I]Private Sub CommandButton2_Click()[/I]
[I]Dim CheckTrack As String[/I]
[I]Dim Vlookupticket As String[/I]
[I]CheckTrack = TicketNumber.Value[/I]
[I]Vlookupticket = Application.VLookup(CheckTrack, Sheet2.Range("A:B"), 2, False)[/I]
[I]If IsError(Vlookupticket) Then[/I]
[I]EscalationTitle.Value = "No Ticket found"[/I]
[I]Else[/I]
[I]EscalationTitle.Value = Vlookupticket[/I]
[I]End If[/I]
[I]End Sub[/I]