Bonjour!
Je suis dans la grosse programmation d'un programme de gestion, et j'aimerais savoir comment je pourrais dire:
Si la valeur recherchée n'est pas dans la sélection, alors, MsgBox("Donnée inconnue")...
::> IF Range("A1").Value n'est pas dans Range("SÉLECTION") THEN...
End if
MERCI TELLEMENT!
VBA Excel: IF (N'EST PAS DANS...) THEN
peuetre quellcun peut vous aidée mais ici cest pas un forum de programmation VBA Excel: peuetre attendre une réponse d un membre qui fait de la programmation VBA Excel ou
allez ici http://www.developpez.net/forums/archiv ... f-664.html
allez ici http://www.developpez.net/forums/archiv ... f-664.html


Peut-être ici mais, il faudrait spécifier si c'est pour des chiffres ou du texte.
Espérant que vous lisez l'anglais.
Bonne chance.
Espérant que vous lisez l'anglais.
Bonne chance.
[i]Le cas échéant, merci d'ajouter la mention[/i][color=red] [b][RÉSOLU][/b][/color] [i]dans l'entête "Sujet" de votre[/i] [color=red][b]PREMIER[/b][/color][i] message.[/i]
Essayer aussi le forum comment ca marche.net
J'ai déjà trouvé des réponses pour excel...
http://www.commentcamarche.net/
J'ai déjà trouvé des réponses pour excel...
http://www.commentcamarche.net/
Bonjour,
j'ai trouvé ceci sur le site de Microsoft. Ça peut vous donner un très bon point de départ même si ce n'est pas exactement ce que vous recherchez.
http://support.microsoft.com/kb/89794
Dim Count As Integer
Dim Target As String
Dim Cell As Object
Dim N As Integer
Sub Target_Count()
Count = 0
Target = InputBox("character(s) to find?")
If Target = "" Then GoTo Done
For Each Cell In Selection
N = InStr(1, cell.Value, target)
While N <> 0
Count = count + 1
N = InStr(n + 1, cell.Value, target)
Wend
Next Cell
MsgBox count & " Occurrences of " & target
Done:
End Sub
j'ai trouvé ceci sur le site de Microsoft. Ça peut vous donner un très bon point de départ même si ce n'est pas exactement ce que vous recherchez.
http://support.microsoft.com/kb/89794
Dim Count As Integer
Dim Target As String
Dim Cell As Object
Dim N As Integer
Sub Target_Count()
Count = 0
Target = InputBox("character(s) to find?")
If Target = "" Then GoTo Done
For Each Cell In Selection
N = InStr(1, cell.Value, target)
While N <> 0
Count = count + 1
N = InStr(n + 1, cell.Value, target)
Wend
Next Cell
MsgBox count & " Occurrences of " & target
Done:
End Sub
P4 3.0Ghz HT, 1Go Ram, AiW 9600XT, Windows XP pro sp2.
Dell Inspiron 6400, Centrino duo T2300, 1Go Ram, ATI X1400 256Mb, Windows XP pro sp2.
Dell Inspiron 6400, Centrino duo T2300, 1Go Ram, ATI X1400 256Mb, Windows XP pro sp2.