error en codigo modificar
Publicado por javier (4 intervenciones) el 27/10/2016 18:50:30
He realizado en visual basic para excel el siguiente código para modificar, pero los cambios no se agregan en el lugar correcto, los agregan en otra fila y columna de la hoja. podrían indicarme cual es mi error
1
2
3
4
5
6
7
8
9
10
11
Application.ScreenUpdating = False
Sheets("Clientes").Activate
Range("B2").Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(0, 1).Activate
Loop
On Error Resume Next
Cells(txtRuc.Text + 2, 1).Select
ActiveCell.Offset(0, 0) = txtRuc
ActiveCell.Offset(0, 1) = txtRazonSocial
MsgBox ("Los Datos fueron actualizados!!!")
Valora esta pregunta


0