hola, Saludos.
Tengo este codigo y lo que hace es llenarme un ListBox con los datos de la hoja2 (Hoja Activa en ese momento y eso esta ok), pero en el mismo formulario me gustaria que en un textBox mostrara el valor de la celda A2 pero de la hoja1.
Private Sub UserForm_Initialize()
UltimaFila = ActiveSheet.Cells(65536, 1).End(xlUp).Row
For x = 2 To UltimaFila
LIS.AddItem ""
LIS.List(LIS.ListCount - 1, 0) = ActiveSheet.Cells(x, 1)
LIS.List(LIS.ListCount - 1, 1) = ActiveSheet.Cells(x, 2)
LIS.List(LIS.ListCount - 1, 2) = ActiveSheet.Cells(x, 3)
LIS.List(LIS.ListCount - 1, 3) = ActiveSheet.Cells(x, 4)
LIS.List(LIS.ListCount - 1, 4) = ActiveSheet.Cells(x, 5)
LIS.List(LIS.ListCount - 1, 5) = x
Next x
En sub
Espero su ayuda. Gracias!!!




