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.

numerar filas en una tabla usando formulario

publicado

Buenas tardes, tengo una macro copiada de un ejemplo que funciona perfectamente. Usa un formulario para capturar datos a una hoja. El problema está cuando convierto el rango normal en una tabla. Aquí ya no me numera la columna A y se desplaza al final de la tabla.

Agradecería me echasen una mano. Adjunto envío archivo.

prueba.xlsm

Featured Replies

publicado
  • Autor

Hola, quiero que sea una tabla, aunque la hoja del archivo está como rango. 

Gracias. 

publicado

Cambia tu código del botón  Grabar datos por este, a ver si es lo que buscas

Private Sub CommandButton1_Click()

    Dim ufh24 As Long
    
    With Hoja24
        ufh24 = .Range("A" & Rows.Count).End(xlUp).Row + 1
        .Cells(ufh24, 1) = Application.WorksheetFunction.Max(.Columns(1)) + 1
        .Cells(ufh24, 2) = CDate(TextBox3)
        .Cells(ufh24, 3) = ComboBox2
        .Cells(ufh24, 4) = ComboBox3
        .Cells(ufh24, 6) = TextBox4
        .Cells(ufh24, 7) = CDbl(TextBox1)
        .Cells(ufh24, 8) = CDbl(ComboBox4)
        .Cells(ufh24, 9) = CDbl(ComboBox5)
        .Cells(ufh24, 10) = ComboBox6
        .Cells(ufh24, 11) = CDbl(TextBox2)
    End With
    
    Limpiar
    
End Sub

 

publicado
  • Autor

 Perfecto!!!  TEMA RESUELTO

Muchas gracias por vuestra dedicación.

Saludos.

 

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.