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/Rango 3D

publicado

Hola bichos y foreros en general:

El enunciado lo dice todo. Se trata de una serie de macros que copian una hoja/rango de una hoja a varias.

Para probar, aseguraros de tener 4 hojas con los nombres "Hoja1", "Hoja2", "Hoja3", "Hoja4"

Poner datos con distintos formatos en la "Hoja1"

Sub HojaCopiarTodo()Hojas = Array("Hoja1", "Hoja2", "Hoja3", "Hoja4")
Sheets(Hojas).FillAcrossSheets Sheets("Hoja1").Cells, xlFillWithAll
End Sub
[/CODE]

[CODE]Sub HojaCopiarContenido()
Hojas = Array("Hoja1", "Hoja2", "Hoja3", "Hoja4")
Sheets(Hojas).FillAcrossSheets Sheets("Hoja1").Cells, xlFillWithContents
End Sub[/CODE]

[CODE]Sub HojaCopiarFormatos()
Hojas = Array("Hoja1", "Hoja2", "Hoja3", "Hoja4")
Sheets(Hojas).FillAcrossSheets Sheets("Hoja1").Cells, xlFillWithFormats
End Sub[/CODE]

[CODE]Sub RangoCopiarTodo()
Hojas = Array("Hoja1", "Hoja2", "Hoja3", "Hoja4")
Sheets(Hojas).FillAcrossSheets Sheets("Hoja1").Range("B5:C10"), xlFillWithAll
End Sub
[/CODE]

[CODE]Sub RangoCopiarContenido()
Hojas = Array("Hoja1", "Hoja2", "Hoja3", "Hoja4")
Sheets(Hojas).FillAcrossSheets Sheets("Hoja1").Range("B5:C10"), xlFillWithContents
End Sub
[/CODE]

[CODE]Sub RangoCopiarFormatos()
Hojas = Array("Hoja1", "Hoja2", "Hoja3", "Hoja4")
Sheets(Hojas).FillAcrossSheets Sheets("Hoja1").Range("B5:C10"), xlFillWithFormats
End Sub
[/CODE]

La opción[b] CopiarFormatos[color=#0000cd][i](xlFillWithFormats)[/i][/color][/b] no elimina los valores existentes.

La opción[b] CopiarContenido[i][color=#0000cd](xlFillWithContents) [/color][/i][/b] no elimina los formatos existentes.

Paz y amor

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.