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.

Macro con vba

publicado

Hola. Como puedo hacer con una macro que al pulsar un botón copie los valores del Rango B10:B46 de la hoja1 al Rango que este libre empezando en F10:F46 de la hoja2 si este está ocupado al siguiente es decir a G10:G46 etc. Muchas gracias a todos por vuestra ayuda.

Featured Replies

publicado

dando por hecho que la fila 10 SIEMPRE va a tener datos...

Sub copiar()
Dim col As Integer
With Worksheets("hoja2")
col = Application.Max(6, .Cells(10, Columns.Count).End(xlToLeft).Offset(, 1).Column)
.Cells(10, col).Resize(37).Value = Worksheets("hoja1").Range("b10:b46").Value
End With
End Sub[/CODE]

adapta a tus necesidades

saludos,

hector.

publicado
  • Autor
dando por hecho que la fila 10 SIEMPRE va a tener datos...

Sub copiar()
Dim col As Integer
With Worksheets("hoja2")
col = Application.Max(6, .Cells(10, Columns.Count).End(xlToLeft).Offset(, 1).Column)
.Cells(10, col).Resize(37).Value = Worksheets("hoja1").Range("b10:b46").Value
End With
End Sub[/CODE]

adapta a tus necesidades

saludos,

hector.

Hola. Como puedo hacer con una macro que al pulsar un botón copie los valores del Rango B10:B46 de la hoja1 al Rango que este libre empezando en F10:F46 de la hoja2 si este está ocupado al siguiente es decir a G10:G46 etc. Muchas gracias a todos por vuestra ayuda.

Muchas gracias Hector

publicado

[uSER=221268]@fedabrio[/uSER]

¿Solucionado?

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.