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.

Agregar Hoja y colocarle nombre de un list box

publicado

Hola,

Tengo el siguiente código para copiar varias hojas y pegarlas a otro libro, el libro Peajes tiene 58 hojas y quiero copiar todas la hojas en el libro Peajes Nuevos, con el nombre de hoja igualito. Pero no se como hacer lo que quiero en forma dinámica que me cree las hojas con el nombre y que me copie la información. En el List Box esta el nombre de la hoja.

Mi libro peajes lo estoy bajando de esta pagina Portal INVÍAS - Colombia

se llama Listado Tarifas peajes


[/hr]With Workbooks("Peajes.xls")

For i = 0 To ListBox1.ListCount - 1

If ListBox1.Selected(i) = True Then

With .Sheets(ListBox1.List(i))

.Range("A2:J" & .[A2].End(xlDown).Row).Copy

With Workbooks("PeajesNuevos.xlsm").Sheets("Hoja3")

.Activate

y = .[A65536].End(xlUp).Row + 1

.Range("A" & y).PasteSpecial Paste:=xlPasteAll, _

Operation:=xlNone, SkipBlanks:=False, Transpose:=False

Application.CutCopyMode = False

End With

End With

End If

Next i

.Close

End With

Featured Replies

No hay posts para mostrar

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.