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.

Delete Rows

publicado

Hola buen día, alguien me puede ayudar con una macro mucho mas eficiente que esta, he realizado esta q subo, pero no estoy satisfecho, habrá otra manera de mejorar el código o que sea mucho mas eficiente, la idea es eliminar las filas que tengan completos los "00:00" de la columna H a la R, menos los que contengan números.

muchas gracias de antemano al que me ayude, abrazosNomina.xlsm

 

Featured Replies

publicado

Prueba con la macro así:

Sub Delete()

    Dim starTime As Double
    Dim x As Integer
    Dim ultRow As Integer
    Dim ultCol As Integer
    
    Application.ScreenUpdating = False
    With dataPrenomina
      ultRow = .Cells(Rows.Count, 2).End(xlUp).Row
      ultCol = .Cells(1, Columns.Count).End(xlToLeft).Column
      starTime = Timer
      For x = ultRow To 2 Step -1
        If Application.Sum(.Range("H" & x).Resize(1, ultCol - 7)) = 0 Then
           .Rows(x).Delete
        End If
      Next x
      MsgBox "Timer is: " & Format(Timer - starTime, "##,##0.00")
   End With
    
End Sub

 

publicado
  • Autor

Antoni y Gerson magnificas respuestas he aprendido un resto, y mas a optimizar el código... Mil gracias, Dios los bendiga.

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.