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 y pegar rango variable, modificando un valor.

publicado

Necesito ayuda al copiar y pegar de una hoja a otra con rango variable, modificando un valor.

aca en este sitio encontre una forma de hacerlo que funciona por Gerson Pineda-El Catracho user-offline.png, pera ademas de lo que hace la macro necesito saber de que hoja se copio, bien sea agregando una columna que diga "Banco1" o "Banco2" o "Banco3", en la hoja que recibe los datos "TotalBancos"o bien modificando en mi caso una celda especifica.

Sub TotalBancos()

Sheets("Banco1").Select

copiar_pegar_Banco

Sheets("Banco2").Select

copiar_pegar_Banco

Sheets("Banco3").Select

copiar_pegar_Banco

end sub

Sub copiar_pegar_Banco()

Dim col, ulf

Application.ScreenUpdating = False

On Error Resume Next

col = Cells(3, Columns.Count).End(xlToLeft).Column

ulf = Range("G" & Rows.Count).End(xlUp).Row

ActiveSheet.Range(Cells(3, 1), Cells(ulf, col)).Copy _

With Sheets("TotalBancos").Range("A" & Rows.Count).End(xlUp).Offset(1)

.PasteSpecial Paste:=xlPasteValues

Application.CutCopyMode = False

End With

On Error GoTo 0

Application.ScreenUpdating = True

End Sub

Featured Replies

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.