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.

Copiar datos de una hoja a otra respetando lineas en blanco

publicado

Lo que pretendo es que al darle al boton guardar, me pase los datos de esta hoja

a la hoja ACUMULADO respetando las lineas en blanco y asi sucesibamente cada vez que pulse el boton guardar.

Tal y como lo tengo me lo pasa, pero cuando le doy otra vez me machaca parte de lo

que habia anterior mente.

PRUEBA.xls

Featured Replies

publicado
  • Autor

Tema solucionado con la siguente macro

Sub Traslado()

Range("A1:E23").Select 'seleccionar rango de los datos

Selection.Copy 'copiar el rango de los datos

Sheets("ACUMULADO").Select ' seleccionar la hoja donde pegar los datos

Range("A3000").Select ' ir a la celda A3000

Selection.End(xlUp).Select 'subir hasta la ultima celda con datos

ActiveCell.Offset(5, 0).Select ' bajar una celda

ActiveSheet.Paste 'pegar los datos

Application.CutCopyMode = False

Sheets("HOJILLAS").Select 'seleccionar la hoja 1

Range("A1:E23").Select 'seleccionar rango de los datos

Selection.ClearContents 'borrar la seleccion

Range("a1").Select 'posicionarse en la celda A1

MsgBox "Traslado finalizada, puede volver a ingresar datos" ' lanzar mensaje de que se ha finalizado

End Sub

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.