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.

Concatenar 2 columnas y que me la pegue en la siguiente hoja en 1 columna

publicado

Hola a todos:

¿como podría concatenar la columna C y D de la siguiente macro de la cual su autor es Antoni, y que me la pegue en la hoja2 columna D?

Muchas gracias por su tiempo y su apoyo.

Bendiciones.


Sub Copiar()
Application.ScreenUpdating = False

Set H1 = Sheets("ORIGEN")
Set H2 = Sheets("DESTINO")

H2.Range("A1:Z50000").ClearContents
H2.Range("A1:Z50000").ClearFormats


fila = H2.Range("A" & Rows.Count).End(xlUp).Row '+ 1
'Range("A" & fila) = "Albaranes"
fila = fila '+ 1
ufila = H1.Range("A" & Rows.Count).End(xlUp).Row

H1.Range("B1:B" & ufila).Copy: H2.Range("A" & fila).PasteSpecial 'xlValues

 

H1.Range("C1:C" & ufila).Copy: QUE SE CONCATENE CON LA COLUMNA E Y LA PEGUE EN LA HOJA 2 COLUMNA D
H1.Range("E1:E" & ufila).Copy: H2.Range("D" & fila).PasteSpecial 'xlValues

End Sub

Editado el por martincosme
Resaltar texto

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.