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.

Compilacion de varios archivos xlsx

publicado

Hola muy buenas tardes acá en México, mi consulta es que tengo este código para copiar y pegar el contenido de un archivo, en uno nuevo:

Sub test()
'
' test Macro
'
'
Selection.End(xlToLeft).Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlUp)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range("B130").Select
Range(Selection, Selection.End(xlUp)).Select
Range("B9:w130").Select
Range("B130").Activate
Selection.Copy
Windows("Consolidado 2012 ww21.xlsx").Activate
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.End(xlToLeft).Select
Selection.End(xlDown).Select
Application.CutCopyMode = False
End Sub [/CODE]

La pregunta es como puedo hacer esto pero con 70 archivos, es decir que abra el 1 ejecute esta macro, cierre el archivo, abra el archivo 2 y asi sucesivamente hasta el archivo 70. espero y me puedan ayudar.

Featured Replies

publicado

Usa un bucle para iterar entre todo los archivos a procesar, te conviene tener los nombres de estos en una hoja e ir celda por celda, recuperando el nombre, abriendolo, compilandolo y cerrandolo!

publicado
  • Autor

Jajajaja la verdad es que soy novato, pero aprendo rápido, como puedo realizar este bucle.

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.