Olá pessoal! gostaria da ajuda de vocês em uma planilha de cadastro de clientes usando userforms e programação...A minha planilha ela já me traz os resultados automaticamente só clicar no nome da pessoa e o Excel trará todas devidas informações e dessas informações gostaria de adicionar um botão para exclui-la a que eu estiver selecionada no lst_clientes somente e não apagar todos!
meu código do lst_clientes:
Private Sub lstclientes_Change()
Dim Lin As Integer
Lin = 2
Do Until Sheets("Plan1").Cells(Lin, 1).Value = Empty
If Sheets("Plan1").Cells(Lin, 1).Value = lstclientes.Value Then
txtnome.Value = Sheets("Plan1").Cells(Lin, 1).Value
txtcpf.Value = Sheets("Plan1").Cells(Lin, 2).Value
txttelefone.Value = Sheets("Plan1").Cells(Lin, 3).Value
txtrua.Value = Sheets("Plan1").Cells(Lin, 4).Value
txtcidade.Value = Sheets("Plan1").Cells(Lin, 5).Value
txtestado.Value = Sheets("Plan1").Cells(Lin, 6).Value
txtdata1.Value = Sheets("Plan1").Cells(Lin, 7).Value
txtservico.Value = Sheets("Plan1").Cells(Lin, 9).Value
txtmodelo.Value = Sheets("Plan1").Cells(Lin, 10).Value
txtvalor.Value = Sheets("Plan1").Cells(Lin, 11).Value
txtdata2.Value = Sheets("Plan1").Cells(Lin, 12).Value
txtstatus1.Value = Sheets("Plan1").Cells(Lin, 14).Value
txtnome.Enabled = False
txtcpf.Enabled = False
txtdata1.Enabled = False
txtdata2.Enabled = False
txtstatus1.Enabled = False
txtmodelo.Enabled = False
Exit Do
Exit Do
End If
Lin = Lin + 1
Loop
End Sub