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.

Repetir una fila de datos n veces

publicado

Saludos, Tengo una hoja en excel con datos de una compra a un proveedor, de esta hoja quiero sacar etiquetas para productos, necesito entonces que cada hilera que representa un producto del cual se compraron las piezas que vienen en la columna, se repita las veces que dice el dato de la columna D, anexo archivo. Mil gracias

etiqauto.xls

Featured Replies

publicado

Hola, copia este código en un módulo de Visual Basic y asígnaselo a un botón. Este código crea una nueva hoja con las filas correspondientes de cada registro. Cuando lo hayas pegado también puedes ejecutarlo pulsando F5.

Espero que sea lo que querías.


Public Sub CrearFilas()
numFilas = 0


Application.ScreenUpdating = False


Worksheets.Add


nombre = ActiveSheet.Name


Worksheets("etiqauto").Select


filas = Range("a50000").End(xlUp).Row


For t = 1 To filas


nFilas = Cells(t, 4)
Range("A" & t & ":G" & t).Copy

Worksheets(nombre).Select

fila = Range("a65000").End(xlUp).Row

For c = 1 To nFilas

Range("A" & fila + c).Select

ActiveSheet.Paste
numFilas = numFilas + 1

Next c


Worksheets("etiqauto").Select


Next t


Application.CutCopyMode = False


Application.ScreenUpdating = True


MsgBox (numFilas & " filas creadas en la hoja: " & nombre)
End Sub
[/CODE]

Un saludo.

Marcial C.

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.