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.

Ejecutar un macro N numero de veces

publicado

Necesito ejecutar un macro X numero de veces y que se agregue en una tabla los datos dentro del macro pero no encuentro forma de hacer que funcione

image.thumb.png.b84caaf84cefca0e319954f8ee901ed1.png

Aqui una foto de lo que deseo agregar donde esta X que sea un numero cualquiera deseado

 

Sub Macro1()
'
' Macro1 Macro
'

'
    Range("H3:K3").Select
    Selection.Copy
    Range("A50000").Select
    Selection.End(xlUp).Select
    
    ActiveCell.Offset(1, 0).Select
    
    ActiveSheet.Paste
    Application.CutCopyMode = False
    Range("J3").Select
End Sub


Ese es el codigo de la macro.

Produccion.xlsm

Featured Replies

publicado

Buenos días, lo que entendí es que se repita el copiado , el numero de veces que pongas en L3 

Sub Macro1()
  Application.ScreenUpdating = False
  
  Range("H3:K3").Select
  
  Selection.Copy
  With Range("A" & Hoja1.Range("A" & Rows.Count).End(xlUp).Row)
  
  For i = 1 To Range("L3")
  .Offset(i, 0).PasteSpecial
  Next
  
  End With
  Application.CutCopyMode = False
  Application.ScreenUpdating = True
End Sub

saludos

 

Produccion.xlsm

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.