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 referencia celda en un for. - combinacion de correspondencia

publicado

G1 en la hoja "titulares" es la celda que quiero referenciar en mi macro, ya que quiero ingresar el nro de registros que quiero imprimir, y no salga los 15, por ejemplo si solo quiero los 5 primeros ...

y si la celda g1 estuviera en la hoja gastos como lo agrego a la macro "imprimir"

aquiles dejo el codigo de la macro.

______________________________________________________________

Sub Macro1()

Sheets("gastos").Select

ActiveSheet.PageSetup.PrintArea = "A1:D14"

For i = 2 To 15

depto = Sheets("titulares").Cells(i, "A")

nombre = Sheets("titulares").Cells(i, "B")

porcentaje = Sheets("titulares").Cells(i, "C")

[B1] = nombre

[B2] = depto

[B3] = porcentaje * [B14]

ActiveSheet.PrintPreview

Next

End Sub

Libro1.xltm

Featured Replies

No hay posts para mostrar

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.