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 los valores de toda la fila donde se localize la coincidencia del valor de otra hoja

publicado

Se me ocurre lo siguiente basandome en un ejemplo que encontre aqui mismo en los foros, pero al momento de ejecutarlo me indica un error no lo logro decifrarlo ya le di varias vueltas igual y es sencillo pero no doy me podrian echar la mano.

El boton "limpiar coincidencia" debe de comparar si existe contenido de cada celda en la columna m en la hoja2 contra el contenido de las celdas de la columna C en la hoja Cob y en caso de que el valor lo encuentre entonces eliminara el contenido de la hoja COb en toda la fila donde se localize el valor, `para lograr esto lo que estoy realizando es sustituir el valor de cada celda por """" con esto logro dejarlo en blanco.

Esa es la idea pero no funciona aun.

fiscales.rar

Featured Replies

publicado
  • Autor

Dar por cerrado este tema ya lo tengo solucionado, gracias.

publicado

Te dejo 2 macros, una para borrar los datos de la fila y otra para eliminarla.

Sub BorrarDatosDeLaFila()
Application.ScreenUpdating = False

For x = Sheets("Cob").Range("A" & Rows.Count).End(xlUp).Row To 11 Step -1
Set Contrato = Sheets("Hoja2").Range("M:M").Find(Sheets("Cob").Range("C" & x).Value)
If Not Contrato Is Nothing Then
If Not Contrato.Value = Empty Then
Sheets("Cob").Range("A" & x & ":N" & x).Value = Empty
End If
End If
Next
End Sub
[/CODE]

[CODE]
Sub EliminarFila()
Application.ScreenUpdating = False

For x = Sheets("Cob").Range("A" & Rows.Count).End(xlUp).Row To 11 Step -1
Set Contrato = Sheets("Hoja2").Range("M:M").Find(Sheets("Cob").Range("C" & x).Value)
If Not Contrato Is Nothing Then
If Not Contrato.Value = Empty Then
Sheets("Cob").Rows(x).Delete
End If
End If
Next
End Sub[/CODE]

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.