No entiendo el porque del error
Publicado por Oscar Rodriguez (9 intervenciones) el 27/06/2012 08:57:25
Application.ScreenUpdating = False
Worksheets("Clientes").Activate
Range("a2").Activate----------------------> Aca me arroja el error y no entiendo porque
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Activate
Loop
ActiveCell = txtrut.Text
ActiveCell.Offset(0, 1) = txtnombre.Text
ActiveCell.Offset(0, 2) = txtapellido.Text
ActiveCell.Offset(0, 3) = txtdireccion.Text
ActiveCell.Offset(0, 4) = cbcomuna.Text
ActiveCell.Offset(0, 5) = txtreferencia.Text
ActiveCell.Offset(0, 6) = CDate(txtfnac.Text)
ActiveCell.Offset(0, 7) = txttelcel.Text
ActiveCell.Offset(0, 8) = txtcontraseña.Text
ActiveCell.Offset(0, 9) = txtemail.Text
Range("k2").Copy
ActiveCell.Offset(0, 10).PasteSpecial Paste:=xlPasteFormulas, operation:=xlNone, skipblanks:=False, Transpose:=False
Application.CutCopyMode = False
NOTA: Anteriormente el diseño del formulario lo hice en VB en el cual no tenia dicho error luego el diseño del formulario lo hice en el mismo excel y ahi es donde comenzo el error si yo lo pongo como comentario me graba si pero en la misma fila del anterior osea quiero que me guarde hacia abajo en la siguiente fila. Desde ya muchas gracias por la atencion prestada
Worksheets("Clientes").Activate
Range("a2").Activate----------------------> Aca me arroja el error y no entiendo porque
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Activate
Loop
ActiveCell = txtrut.Text
ActiveCell.Offset(0, 1) = txtnombre.Text
ActiveCell.Offset(0, 2) = txtapellido.Text
ActiveCell.Offset(0, 3) = txtdireccion.Text
ActiveCell.Offset(0, 4) = cbcomuna.Text
ActiveCell.Offset(0, 5) = txtreferencia.Text
ActiveCell.Offset(0, 6) = CDate(txtfnac.Text)
ActiveCell.Offset(0, 7) = txttelcel.Text
ActiveCell.Offset(0, 8) = txtcontraseña.Text
ActiveCell.Offset(0, 9) = txtemail.Text
Range("k2").Copy
ActiveCell.Offset(0, 10).PasteSpecial Paste:=xlPasteFormulas, operation:=xlNone, skipblanks:=False, Transpose:=False
Application.CutCopyMode = False
NOTA: Anteriormente el diseño del formulario lo hice en VB en el cual no tenia dicho error luego el diseño del formulario lo hice en el mismo excel y ahi es donde comenzo el error si yo lo pongo como comentario me graba si pero en la misma fila del anterior osea quiero que me guarde hacia abajo en la siguiente fila. Desde ya muchas gracias por la atencion prestada
Valora esta pregunta


0