Martin Velasco Ormeño

Martin Velasco Ormeño

 Perú @martinvelascoormeno desde - visto
Preguntar

Actividad pública reciente

Ha preguntado en el tema en y en 3 temas más

¿Qué puede estar mal con este código? Me aparece de error #VALUE

Function dsimplex(CODIGO As String) Dim rg As Range Set rg = Workbooks("C:\Users\mvela\Documents\Prueba.xlsm").Worksheets("Simplex").Range("A:Z") dsimplex = Application.WorksheetFunction.VLookup(CODIGO, rg, 2, 0) End Function
Ha preguntado en el tema en y en 2 temas más

VLOOKUP en VBA en diferentes hojas

Mi código no funciona Function bsimplex(CODIGO As String) Dim buscar As Variant buscar = Application.WorksheetFunction.VLookup(CODIGO, Workbooks("Prueba.xls").Sheets("Simplex").Range("A"), 2, False) If IsError(buscar) Then MsgBox ("No se encuentra...