You are on page 1of 1

Private Sub CommandButton1_Click()

codBUS = txtcodigo.Text
F=4
Do While Sheets("PROVEEDORES").Cells(F, 2) <> ""
If Sheets("PROVEEDORES").Cells(F, 2) = codBUS Then
txtempresa = Sheets("PROVEEDORES").Cells(F, 3)
Exit Do
End If
F=F+1
Loop
End Sub

Private Sub CommandButton2_Click()


End
End Sub

Private Sub CommandButton3_Click()


op = MsgBox("Realmente deseas eliminar a " & txtempresa.Text, vbYesNo)
If op = vbYes Then
Sheets("PROVEEDORES").Rows(F & ":" & F).Delete
End If

End Sub

You might also like