Vba Chercher une chaîne de caractère
Résolu/Fermé
A voir également:
- Vba Chercher une chaîne de caractère
- Caractère ascii - Guide
- Caractere speciaux - Guide
- Caractère spéciaux - Guide
- Caractère spéciaux mac clavier - Guide
- Chaine tnt gratuite sur mobile - Guide
2 réponses
Ne tenez pas compte de ce problème il n'y en a paws (tout marche). la prochaine fois je reflechirais un peu plus avant de poser une question....(o)
Pour ce que ca interresse voici le code:
Sub Chercher()
Dim i As Integer
Dim Cell As Range
Dim NumFM
NumFM = InputBox("Fm rechercher:")
For i = 2 To 500
If Cells(i, 1) = NumFM Then
Cells(i + 1, 1).Select
Selection.EntireRow.Insert
Cells(i + 1, 2) = "azerty"
Exit Sub
End If
Next
End Sub
Pour ce que ca interresse voici le code:
Sub Chercher()
Dim i As Integer
Dim Cell As Range
Dim NumFM
NumFM = InputBox("Fm rechercher:")
For i = 2 To 500
If Cells(i, 1) = NumFM Then
Cells(i + 1, 1).Select
Selection.EntireRow.Insert
Cells(i + 1, 2) = "azerty"
Exit Sub
End If
Next
End Sub