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.

Extraer rango de datos de una tabla con un mismo codigo a tabla

publicado

Por favor el código abajo descrito , necesite que funcione con tablas

 

Sub REP_FUNC()
'BUSQUEDA POR CEDULA
    Set h1 = Sheets("DATA")
    Set h2 = Sheets("REP-FUNC")
    u2 = h2.Range("F" & Rows.Count).End(xlUp).Row
    If u2 < 2 Then u2 = 2 'linea de inicio
    h2.Range("F" & u2 & ":N" & u2).ClearContents
    'h2.Range("F" & u2 & ":K" & u2).ClearContents
    j = 2
    celda = "A1" 'CELDA DE LA CONSULTA
    Set r = h1.Columns("E") 'COLUMNA DE CONSULTA DATA
    Set b = r.Find(h2.Range(celda), lookat:=xlWhole)
    If Not b Is Nothing Then
        ncell = b.Address
        Do
            h1.Range(h1.Cells(b.Row, "A"), h1.Cells(b.Row, "I")).Copy
            'h1.Range(h1.Cells(b.Row, "F"), h1.Cells(b.Row, "K")).Copy
            h2.Cells(j, "F").PasteSpecial Paste:=xlValues
            j = j + 1
            Set b = r.FindNext(b)
        Loop While Not b Is Nothing And b.Address <> ncell
    End If
End Sub

Featured Replies

publicado
  • Autor

Gracias por la ayuda.......

En archivo adjunto realiza la búsqueda de un valor repetido de otra hoja del mismo libro y trae toda la información. Lo que necesito es cual seria el código para que funcione con tabla.

CONSULTA INV-DE UN MISMO CODIGO ASIGNADO.xlsb

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.