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.

Copiar hoja, renombrarla y moverla

publicado

Hola amig@s:

Tengo los siguientes códigos:

Sub Nuevahoja()
Sheets("A").Select
Sheets("A").Copy before:=Sheets(4)
' renombramos la hoja

ActiveSheet.Name = Range("B1").Value

End Sub
[/CODE]

Bueno con estos códigos lo que hago es copiar la hoja "A" y después renombrarla con el valor de la celda B1, lo que quiero es que la nueva hoja creada se mueva a mi otro libro de excel que esta con el nombre de Clientes, que código me faltaría?.

Gracias

Saludos

Jesús

Featured Replies

publicado

Hola @[uSER=56845]jesus miguel[/uSER]

Prueba con esta.

Sub nuevahoja ()
'
Cells.Select
Selection.Copy
Windows("Clientes.xlsm").Activate
Sheets.Add After:=Sheets(Sheets.Count)
Range("A1").Select
ActiveSheet.Paste
ActiveSheet.Name = Range("B1").Value
End Sub[/CODE]

Slds. JL.

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.