Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have the next: Private Sub btn4_Click() Dim magneto As Range Dim numero Dim valor As Variant Dim existe As Boolean Sheets("info").Visible = True Set magneto = Worksheets("info").Range("A2:AY65526") numero = ufConsulta.cboOrden.Value existe = protege.existe(CStr(numero)) If existe = True Then ufConsulta.txt33.Value = Application.VLookup(numero, magneto, 1, falso) 'Orden de reparación ufConsulta.txt34.Value = Application.VLookup(numero, magneto, 2, falso) 'Número de siniestro .... When the numero's value is something like "96LP" there's no problem. However, when the value is like "96", then appears a type mismatch error. What am I doing wrong? TiA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Application.Vlookup Type Mismatch Error | Excel Programming | |||
vlookup type mismatch error | Excel Programming | |||
Type mismatch in vlookup | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Type Mismatch in Vlookup? | Excel Programming |