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 para mover hojas de un Libro de excel a otro Libro de excel nuevo

publicado

Hola, que tal?

Quisiera que me ayuden con esta macro, tengo un "Área_Consolidado" que contiene 04 hojas (Área_Uno, Área_Dos, Área_Tres, Tablas), la intención es  que mediante un "click",  pueda "copiar" ciertas hojas a NUEVOS LIBROS de la siguiente manera:

Libro1 con nombre "Área_Uno", debe contener: hojas con nombre Área_Uno y Tablas)

Libro2 con nombre "Área_Dos", debe contener: hojas con nombre Área_Dos y Tablas)

Libro3 con nombre "Área_Tres", debe contener: hojas con nombre Área_Tres y Tablas)

Aclaración: el libro "'Área_Consolidado" no debe alterarse. 

Espero me puedan, ayudar. 

Mariela

Featured Replies

publicado

Hola.

Podrías utilizar algo parecido a esto, modificando las líneas necesarias para que se adapten a tus necesidades: 

Sub Macro1()
Dim wkAct As Workbook
Dim wkNvo As Workbook
Dim wsHoja As Worksheet
Dim iÍnd As Integer

    Set wkAct = ThisWorkbook
    For Each wsHoja In wkAct.Sheets
        If wsHoja.Name <> "Tablas" Then
            iÍnd = iÍnd + 1
            wsHoja.Copy
            Set wkNvo = ActiveWorkbook
            wkAct.Sheets("Tablas").Copy After:=wkNvo.Sheets(1)
            wkNvo.SaveAs "Libro" & iÍnd & ".xlsx"
            wkNvo.Close
        End If
    Next

End Sub

Un saludo.

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.