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.

Codigo Concatenación VBA

publicado

Estimados Amigos:

La verdad es que estuve buscando bastante, pero no encuentro ni se me ocurre como resolver mi problema.

Quiero concatenar dos columnas ( La A y la C) y que me arroje el resultado en la B.

El codigo que estuve probando fue : 

 

Sub Contar()

On Error Resume Next

Dim base As Byte
Dim i As Byte

base = Range("Contar").Count         'Contar es el rango dinamico que estoy utilizando , en este caso sería la ultima fila'
 
 For i = 2 To base
 
 Cells(i, 2) = Cells("Ai") & Cells("Ci")
  
 Next i

End Sub

 

 

Desde ya si a alguien se le ocurre algo les agradezco mucho!


 

 

 

Book1.xlsx

Featured Replies

publicado

prueba este codigo

Sub concatenar()
Set datos = Range("a1").CurrentRegion
Set datos = datos.Offset(1, 0).Resize(datos.Rows.Count - 1, datos.Columns.Count)

For i = 1 To datos.Rows.Count
    datos.Cells(i, 2) = datos.Cells(i, 1) & datos.Cells(i, 3)
Next i
End Sub

 

publicado
  • Autor

Perfecto. Anduvo!!.

Muchas gracias!

  • Silvia bloqueó este tema

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.