Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Comment dire en VBA...

4 réponses
Avatar
Alain
Bonsoir
encore moi !
Comment dire en VBA
Dans ce textbox, il y a tant de " /"
Merci beaucoup et bonne soirée
Alain

4 réponses

Avatar
J-Dan
alain,

encore moi aussi ;-))

si tu veux compter les slashes dans ton textbox :

txt = TextBox11
For I = 1 To Len(txt)
If Mid(txt, I, 1) = "/" Then
NbSlash = NbSlash + 1
End If
Next
MsgBox NbSlash
End Sub

J-Dan

-----Message d'origine-----
Bonsoir
encore moi !
Comment dire en VBA
Dans ce textbox, il y a tant de " /"
Merci beaucoup et bonne soirée
Alain


.



Avatar
AV
Dans ce textbox, il y a tant de " /" ??


Ou encore :

txt = TextBox11
MsgBox Len(txt) - Len(Application.Substitute(txt, "/", ""))

AV

Avatar
Alain
Merci beaucoup J-Dan
Alain

"J-Dan" a écrit dans le message de
news:7adc01c4769e$f42bd480$
alain,

encore moi aussi ;-))

si tu veux compter les slashes dans ton textbox :

txt = TextBox11
For I = 1 To Len(txt)
If Mid(txt, I, 1) = "/" Then
NbSlash = NbSlash + 1
End If
Next
MsgBox NbSlash
End Sub

J-Dan

-----Message d'origine-----
Bonsoir
encore moi !
Comment dire en VBA
Dans ce textbox, il y a tant de " /"
Merci beaucoup et bonne soirée
Alain


.



Avatar
Alain
Merci beaucoup également AV
Alain

"AV" a écrit dans le message de
news:
Dans ce textbox, il y a tant de " /" ??


Ou encore :

txt = TextBox11
MsgBox Len(txt) - Len(Application.Substitute(txt, "/", ""))

AV