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.

Crear un macro para imprimir un numero de hojas determinadas

publicado

En el excel que adjunto, en la pestaña listado celda I9, pone un valor (que es variable), lo que quiero es que al darle a imprimir en el ejecutable de la pestaña pegatina, imprima tantas hojas, como el número que pone en la I9.
Para este caso pone la I9 29, por lo que en la pestaña pegatinas al ejecutar la macro imprima 29 hojas.
Muchas gracias de antemano.
Saludos.

PEGATINAS CALIBRACIÓN_prueba.xlsm

Featured Replies

publicado

Hola @rafernan

Una posible solución, espero sea de utilidad.

-->>

Sub Print_1()

Cc = Sheets("LISTADO").Cells(9, 9).Value
   Sheets("PEGATINA").PrintOut From:=1, to:=Cc ', Copies:=Cc, Collate:=True, IgnorePrintAreas:=False

''For i = 1 To Cc
''     Sheets("PEGATINA").PrintOut
''Next i

End Sub

<<--

Nos comentas

publicado
  • Autor

Algo hago mal que cuando lo traslado al excel, y ejecuto la macro me da error y se señala en amarillo el 9 de Cell.

¿que puede ser?

Muchas gracias.

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.