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.

TRASPASAR FILAS DE UNA HOJA A OTRA CON DOS CONDICIONES

publicado

Buenos días.

He realizado esta macro que  lo que hace es si en la columna "revisión " de la hoja "facturación servicer"  pone "no se remite" se traspase a la hoja "NO SE REMITE".

Si sólo pongo esa condición la macro funciona perfectamente y rápido pero si añado  que si en la columna "vendidas" de la hoja "facturación servicer"  sea distinto a "no vendidas" con la sentencia 

If REVISIÓN = "NO SE REMITE" Or VENDIDAS <> "NO VENDIDAS" Then , para que también lo mueva a la hoja " no se remite" se me queda muy tostado el fichero y no es viable.

He probado a hacerlo en dos partes, incluso en dos módulos pero seguro que hay algo mucho más eficaz.

Ambas hojas tienen las mismas columnas y en el mismo orden.

¿Alguien me puede ayudar?

Muchas gracias de antemano.

También os facilito el fichero ejemplo.

 

MODELO_FACTURACION_REVISION_PROYECTOS -PRUEBA3.xlsm

Featured Replies

publicado

También valdría, o eso creo:

Sub ExtraerDatosNOfacturar()
Dim Fila As Long
For Fila = 3 To Hoja1.Range("A" & Rows.Count).End(xlUp).Row
   If Hoja1.Range("AA" & Fila) = "NO SE REMITE" And _
      Not Hoja1.Range("AF" & Fila) = "NO VENDIDAS" Then
      Hoja1.Rows(Fila).Copy _
      Hoja2.Rows(Hoja2.Range("A" & Rows.Count).End(FilalUp).Row + 1)
      Hoja1.Rows(Fila).Delete
      Fila = Fila - 1
   End If
Next
End Sub

 

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.