formularios

Trufa

New Member
Joined
Oct 29, 2002
Messages
12
¿Como hago para que una vez creado un formulario y definidos los campos del formulario este funcione como un formulario de ingreso de datos y quede todo ordenado en en la planilla.?
Esto es tengo un formulario con un Textbox que es Nombre y otro Apellido,
quiero ejecutar el formulario y que cuando se complete se actualice la planilla y ponga cada registro que completo en una fila diferente.

Se que seria con codigos de VB pero no encuentro como, ya que si al TextBox le pongo como controlsource una celda, todo lo que ingrese ahí quedara siempre en la misma.
Gracias
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Si, por eso es mejor no utilizar el ControlSource, sino manejar todo desde código...

Algo así, por ejemplo en el código del botón:

Code:
With Sheets("Hoja1").Range("A65536").End(xlUp).Offset(1)
    .Value = tNombre.Value
    .Offset(, 1).Value = tApellido.Value
End With

pondría en la primera celda disponible de la columna A de la hoja Hoja1 el nombre (tNombre), y en la celda del lado, columna B, el apellido (tApellido)
 
Upvote 0

Forum statistics

Threads
1,215,751
Messages
6,126,669
Members
449,326
Latest member
asp123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top