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.

error en el metodo select de la clase Range

publicado

Saludos,

intento simplemente crear un macro para copiar y pegar celdas de dos hojas diferentes desde la ultima celda vacia.. "es mi primer macro"

Sub nuevos()

Dim ultimafila As Long

ultimafila = Sheets("Hoja2").Range("B20000").End(xlUp).Row

ultimafila = ultimafila + 1

Sheets("FORMATO").Range("K13").Copy

Sheets("Hoja2").Cells(ultimafila, 2).Select en esta linea presenta el error

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _

:=False, Transpose:=False

Sheets("FORMATO").Range("K15").Copy

Sheets("Hoja2").Cells(ultimafila, 4).Select

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _

:=False, Transpose:=False

me podrian guiar un poco.. gracias.

Featured Replies

publicado
Sub nuevos()

Dim ultimafila As Long
Dim Origen As Worksheet, Destino As Worksheet


Set Origen = Sheets("FORMATO")
Set Destino = Sheets("Hoja2")


ultimafila = Sheets("Hoja2").Range("B" & Rows.Count).End(xlUp).Row + 1


Destino.Range("B" & ultimafila) = Origen.Range("K13")
Destino.Range("C" & ultimafila) = Origen.Range("Q15")
Destino.Range("D" & ultimafila) = Origen.Range("D43")
'etc...


End Sub


[/CODE]

publicado
  • Autor

Saludos marco Antonio, muchas gracias por la pronta respuesta.

Que los Dioses te iluminen.

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.