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.

UserForm - Pasar datos a un hoja a varias columnas y se graven uno bajo otro

publicado

UserForm.Comobobox pasar datos a columnas según el titulo se coloquen datos uno debajo.

Estimados.

He venido a buscar vuestra ayuda con algo que me está rompiendo la cabeza.

Tengo un UserForm donde ingreso unos datos a una hoja con varias columnas pero no siempre se llenan todas por lo cual necesitaría que se llene por fila uno bajo otro como base de dato dependiendo lo que se ingrese, el tema que cuando se graba a partir de la 3 fila se terminan grabando en la fila anterior sobre los datos que ya estaban ingresados.

Adjunto archivo para que se pueda entender visualmente.

Desde ya muchas gracias por su tiempo.

Muy bueno el foro me ha enseñado mucho.

-----------------------

Private Sub datoaingresar_Click()

Application.ScreenUpdating = False

Dim ColAB As Long

Sheets("Hoja3").Activate

ColAB = ActiveSheet.Range("AM65536").End(xlUp).Row + 1

Cells(ColAB, 39) = TextBox6

Cells(ColAB, 40) = TextBox12

Range("A1").Select

nextrow = _

Application.WorksheetFunction.CountA(Range("A:A")) + 1

For i = 1 To 38

a = Cells.Item(2, i)

If TextBox1.Text = a Then

Cells.Item(nextrow, i) = TextBox7.Value

End If

If TextBox2.Text = a Then

Cells.Item(nextrow, i) = TextBox8.Value

End If

If TextBox3.Text = a Then

Cells.Item(nextrow, i) = TextBox9.Value

End If

If TextBox4.Text = a Then

Cells.Item(nextrow, i) = TextBox10.Value

End If

If TextBox5.Text = a Then

Cells.Item(nextrow, i) = TextBox11.Value

End If

If TextBox6.Text = a Then

Cells.Item(nextrow, i) = TextBox12.Value

End If

Next

End Sub

pruebaepp.zip

Featured Replies

publicado
  • Autor

Combobox- Pasar datos a columnas según el titulo se coloquen datos uno debajo.

Alguien me podria orientar?

Gracias por su tiempo!

saludos

Juan

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.