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.

Imprimir hojas segun condicion.

publicado

Buenas noches gente!

Estoy enfrascado en una macro, que me extrae el trabajo diario en hoja2, a partir de la fila 17. Luego, cada 30 filas se copia automaticamente a Hoja3, las siguientes 30 filas a Hoja 4, asi sucesivamente.

Me imprime la primera hoja, (ya he puesto por macro cual quiero que sea la impresora predeterminada), pero lo que no se si se podra hacer, es que si en la hoja2, hay =< de 30 filas (se puede hacer tambien por la columna A), desde las filas 17 a 46, que me imprima la hoja3. Si hay entre 31 y 60 filas, entre las filas 47 a 76, que imprima tambien la hoja4, si hay entre 61 y 90 filas, que imprima hoja5.

Espero haberme explicado bien.

Gracias por vuestro tiempo y saludos.

Featured Replies

publicado

Saludos.

Debes adjuntar un archivo.

Atte.

joshua

publicado
  • Autor

Solucionado con esta macro:

Sub Imprimirseguncondicion()
Dim hj
Application.ScreenUpdating = False
For Each hj In Array("Hoja3", "Hoja4", "Hoja5")
With Worksheets(hj)
If .[b1] > 1 Then
.PrintOut:
End If
End With
Next hj
Application.ScreenUpdating = True
End Sub
[/CODE]

Saludos.

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.