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 a una hoja desde un useform

publicado

Hola a todos!!

Estoy intentando copiar datos a una hoja excel desde un useform

No veo que está mal porque otras veces me ha funcionado...Mucchas gracias. os paso el excel por si quereis mirarlo....

Esto es lo que tengo en la parte módulo:

Public Fecha8 As Date
Public Medido8 As String
Public Comentarios2 As String
Public Escribir8 As Single
Dim p As Double


Sub Variacionlongresolucion()

'Tomamos los datos en el formulario
Varlongres.Show

If Escribir8 = 1 Then

'Se copian los datos finales en la hoja correspondiente
   With Sheets("Var longit de la resol espacial")
      'Encuentra la primera fila sin datos
      p = .Range("E" & Rows.Count).End(xlUp).Row + 1
      
      'Se copian los datos
      .Cells(p, 2) = Fecha8
      .Cells(p, 3) = Medido8
      .Cells(p, 4) = Comentarios2
   End With
End If
End Sub

Prueba.rar

Featured Replies

publicado

Qué tal @ruipe ,

El problema lo tienes con las celdas combinadas, que arrojan un valor de 2, tal y como tienes p:

p = .Range("E" & Rows.Count).End(xlUp).Row + 1 

Te dejo el archivo con celdas descombinadas y una nueva referencia de p

Prueba

  • Enigma25 bloqueó este tema

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.