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.

Eliminar fila con ciertos criterios

publicado

hola, mi ayuda es como hago para eliminar filas que contengan cierta celda en blanco, por ejemplo, tengo una lista en la columna A, esta la ID, en la columna B esta el VALO PAGADO, y en la columna C esta la FECHA DEL PAGO, pero yo todo lo llamo desde otra hoja donde se insertan los datos de un formulario, entonces si en cierta fila el valor pagado es "0", entonces que me elimine toda la fila sin importar que tenga datos en las demas celdas.

el macro de insertar datos esta creado por grabar macros.

muchas gracias.

Libro1.rar

Featured Replies

publicado

Hola Juan, este codigo borra las filas que esten vacias en la columna C:

Columns(3).SpecialCells(xlCellTypeBlanks).EntireRow.Delete[/CODE]

Manualmente seria asi:

1. Seleccionar columna C

2. Oprimir F5

3. Especial

4. Celdas en blanco

5. Borrar filas

publicado

Considera la posibilidad de sustituir los codigos qur tienes por uno de estos 2, ambos hacen lo mismo:

Sub ACOSTUMBRADO()
Application.ScreenUpdating = False
Sheets("Hoja1").Range("A4:A12").Copy Sheets("Hoja2").Range("A2")
Sheets("Hoja1").Range("G4:H12").Copy Sheets("Hoja2").Range("B2")
Sheets("Hoja1").Range("A4:A12").Copy Sheets("Hoja2").Range("A11")
Sheets("Hoja1").Range("I4:J12").Copy Sheets("Hoja2").Range("B11")
Sheets("Hoja1").Range("A4:A12").Copy Sheets("Hoja2").Range("A20")
Sheets("Hoja1").Range("K4:L12").Copy Sheets("Hoja2").Range("B20")
Sheets("Hoja2").Range("A1").CurrentRegion.Sort Key1:=Hoja2.Range("A1"), Order1:=xlAscending, Header:=xlYes
Sheets("Hoja2").Columns(3).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
Sub REDUCIDO()
Application.ScreenUpdating = False
With Hoja1
.[A4:A12].Copy Hoja2.[A2:A28]
.[G4:H12].Copy Hoja2.[B2]
.[I4:J12].Copy Hoja2.[B11]
.[K4:L12].Copy Hoja2.[B20]
End With
Hoja2.[A1].CurrentRegion.Sort Key1:=Hoja2.[A1], Order1:=xlAscending, Header:=xlYes
Hoja2.Columns(3).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub[/CODE]

publicado
  • Autor

okey muchisisimas gracias los voy a probar y te digo como me fue :)

publicado
  • Autor

ya lo probe y reemplace todo el codigo del macro, y me sirvio artisisimo muchisimas gracias :) esta genial

ya se puede cerrar el 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.