Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Función Vlookup no encuentra los datos

publicado

If Mid(ComboBox1.Value, 1, 1) = "B" Or Mid(ComboBox1.Value, 9, 1) = "B" Then
Tipo = 2
Else
Tipo = 1
End If

Ancho = Mid(ListBox1.Value, 1, 3)

If Mid(ListBox1, 18, 1) = "u" Then
Espesor = Mid(ListBox1.Value, 16, 2)
Else
Espesor = Mid(ListBox1.Value, 16, 3)
End If

Dim importacion As Variant, Proveedorproducto As Variant
importacion = Application.VLookup(TextBox7.Value, Worksheets("Estructura COD. Lotes Film").Range("A3:J102"), 3, False)
Proveedorproducto = Application.VLookup(TextBox7.Value, Worksheets("Estructura COD. Lotes Film").Range("A3:F102"), 6, False)

If IsError(importacion) = False Then
Cells(n, 7).Select
ActiveCell.FormulaR1C1 = TextBox7.Value & importacion & Proveedorproducto & Tipo & Ancho & Espesor
Else
Cells(n, 7).Select
ActiveCell.FormulaR1C1 = "No encontrado"
End If


En el TextBox7 se ingresan numeros (15, 18, 23,29 ) y en la Hoja "Estructura COD. Lotes Film" se encuentran estos mismos valores y los que debe devolver (datos de la fila 3 y 6 ) son numeros 


AYUDA PORFAVOOOOOOOOOR 

Featured Replies

publicado

Hola andresko, 

Prueba a convertir el valor del textbox a entero con CInt(expresión)

publicado

Complementando a nachobm:

importacion = Application.VLookup(CLng(TextBox7.Value), _
   Worksheets("Estructura COD. Lotes Film").Range("A3:J102"), 3, False)

 

  • Silvia bloqueó este tema

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.