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.

Macro limpiear rango segun fecha

publicado

Necesito macro para eliminar celdas de una tabla segun mes .

Adjunto archivo

Gracias de antemano

ejemplo.rar

Featured Replies

publicado

Hola

Pues ahí te la dejo.

Sub EliminarMes()

If IsDate([J3]) = False Then
Beep
Exit Sub
End If

For x1 = 4 To Range("A" & Rows.Count).End(xlUp).Row
If Month(Range("C" & x1)) = Month([J3]) And _
Year(Range("C" & x1)) = Year([J3]) Then
For x2 = Range("A" & Rows.Count).End(xlUp).Row To 4 Step -1
If Month(Range("C" & x2)) = Month([J3]) And _
Year(Range("C" & x2)) = Year([J3]) Then
Range(x1 & ":" & x2).EntireRow.Delete
Exit Sub
End If
Next
End If
Next
MsgBox "No se han detectado filas con " & Format([J3], "mmm-yy")

End Sub

[/CODE]

Saludos

publicado

Opcion:

Sub Macro1()
Range("C3").AutoFilter
ActiveSheet.Range("$A$3:$G$1582").AutoFilter Field:=3, Operator:= _
xlFilterValues, Criteria2:=Array(1, "2/28/2013")
Range(Range("C4"), Range("C4").End(xlDown)).Select
Selection.EntireRow.Delete
Selection.AutoFilter
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.