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.

Seleccionar ultima celda con datos y coopiarla

publicado

Buenas tardes, de abte manos muchas gracias a la comunidad por la ayuda

 

quisiera seleccionar la ultima celda con datos y copiarla para posteriormente pegarla en una hoja nueva, este es mi codigo 

 

Sub Copiar_Valores_Contabilidad()
        
        
        Sheets("Extraer_Rutas").Select
        
        
        For i = 2 To Range("A" & Rows.Count).End(xlUp).Row
        ActiveSheet.Range("A" & i).Select
        Selection.Copy
        
        Next
        
        Sheets("Rutas_Fs").Select
        ActiveSheet.Range("A2").Select
        ActiveSheet.Paste
        
       
       
        
        End Sub

 

pero lo que hace el codigo es que me selecciona el ultimo dato y lo pega  y quiere que tome es toda la seleccion de datos, agradezco su ayuda

Featured Replies

publicado
Sub Copiar_Valores_Contabilidad()
With Sheets("Extraer_Rutas")
   .Range("A2:A" & .Range("A" & Rows.Count).End(xlUp).Row).Copy Sheets("Rutas_Fs").Range("A2")
End With
End Sub

 

publicado
  • Autor

Sr Antoni muchas gracias!

publicado
  • Autor

don Antoni de ante muchas gracias, este código también sirve para cuando los rangos están filtrados?

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.