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.

Label no se actualiza

publicado

Hola,

Estoy tratando de utilizar labels para automatizar la impresión sobre unos formatos pre impresos extrayendo los registros de otra hoja del archivo, al hacerlo registro a registro no tengo problema, pero si quiero imprimir automáticamente un rango de registros el label solo toma el primer valor y no los siguientes:

Dim inicio, final As Integer

inicio = InputBox("Indique Registro Inicial", "Inicio")

final = InputBox("Indique Registro final", "Final")

b = inicio

For i = inicio To final

Sheets("hoja1").Range("a1").Value = Sheets("hoja2").Range("b" & B)

Label1.Caption = Range("a1")

Sheets("Hoja1").PrintOut

b = b + 1

Next i

En este caso el label toma el valor inicial pero no lo actualiza.

Mil gracias por la colaboración al respecto.

Antonio G.

Featured Replies

publicado

Adjunta un archivo ejemplo.....normas del foro.....para que alguien te pueda ayudar.

Un saludo,

Tese

publicado
Hola,

Estoy tratando de utilizar labels para automatizar la impresión sobre unos formatos pre impresos extrayendo los registros de otra hoja del archivo, al hacerlo registro a registro no tengo problema, pero si quiero imprimir automáticamente un rango de registros el label solo toma el primer valor y no los siguientes:

Dim inicio, final As Integer

inicio = InputBox("Indique Registro Inicial", "Inicio")

final = InputBox("Indique Registro final", "Final")

b = inicio

For i = inicio To final

Sheets("hoja1").Range("a1").Value = Sheets("hoja2").Range("b" & B)

Label1.Caption = Range("a1")

Sheets("Hoja1").PrintOut

b = b + 1

Next i

En este caso el label toma el valor inicial pero no lo actualiza.

Mil gracias por la colaboración al respecto.

Antonio G.

Bienvenido al foro

Lee primero por aqui Normas - Política - Términos | Ayuda Excel

Nadie te respondera hasta que demuestres que ya leiste las normas

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.