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.

(ayuda)macro que pegue en primera celda vacia

publicado

Buenas a todos, estoy intentando hacer algo pero no doy con ello.

La cosa es que tengo un listado con cuentas y hago una macro que en un listado cada vez que lo pulse me ponga fecha y el total de las cuentas y la siguiente vez justo debajo al estar vacía la nueva fecha y el nuevo total para que vaya guardando el registro.

Solo me sale la primera vez, luego no sigue la lista...

¿Me podríais orientar un poco?

Muchas gracias.

PD: dejo archivo de lo que tengo hasta ahora

Dropbox - CUENTAS 2014.xls

Saludos

Featured Replies

publicado

Saludos.

Prueba con la siguiente macro.

Sub Prueba_Resumen()
Rem declaramos variables
Dim uc As Integer, fecha As Date _
, total As String
Rem trabajamos en la hoja CUENTAS
With Hoja2
Rem ultima celda disponible
uc = .Range("A65536").End(xlUp).Row + 1
Rem cargamos las variables a utilizar
fecha = Format(Now, "dd/mm/yyyy")
total = Format(.Range("C16"), "#,##0.00€")
Rem cargamos los datos
.Range("A" & uc).Resize(, 2) = Array(fecha, total)
End With
End Sub
[/HTML]

Atte.

Joshua

publicado
  • Autor
Saludos.

Prueba con la siguiente macro.

Sub Prueba_Resumen()
Rem declaramos variables
Dim uc As Integer, fecha As Date _
, total As String
Rem trabajamos en la hoja CUENTAS
With Hoja2
Rem ultima celda disponible
uc = .Range("A65536").End(xlUp).Row + 1
Rem cargamos las variables a utilizar
fecha = Format(Now, "dd/mm/yyyy")
total = Format(.Range("C16"), "#,##0.00€")
Rem cargamos los datos
.Range("A" & uc).Resize(, 2) = Array(fecha, total)
End With
End Sub
[/HTML]

Atte.

Joshua

Que eficacia así va perfecto.

Muchas Gracias Joshua

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.