I need to select the line with the value of combobox 1 and the date of combobox 3 to select the desired line to delete. This is the problem I have to solve.
Can someone help me?
This is the code I have to select the cell of combobox1:
Private Sub RemverRegisto_Click()
Range("E3").Select
While ActiveCell <> ""
If CB_TipoFralda.Text = ActiveCell Then
Resposta = MsgBox("Registo encontrado, deseja excluir?", vbYesNo)
End If
If Resposta = vbYes Then
ActiveCell.EntireRow.Delete
Exit Sub
End If
ActiveCell.Offset(1, 0).Activate
Wend
Exit Sub
End Sub
I'll put a picture to show what I want:
I want to activate the line with the values of the product combobox and the date to delete and with the above code only active the line with the value of the product combobox, then preclear all the lines in which find the product of combobox1. >
I've got the solution, thank you.
If you need to see the solution just ask me to put it here