Sub parcourir() Dim i, j, nbcar As Integer Dim caract As String i = 1 'parcourir la colonne tant que la cellue n'est pas vide While IsEmpty(Cells(i, 1)) = False nbcar = Len(Cells(i, 1)) For j = 1 To nbcar caract = Mid(Cells(i, 1), j, 1) Debug.Print caract Next i = i + 1 Wend End Sub
Dim ltStr() as String ltStr=Split(MaValeur,"|") if ubound(ltStr)+1<>4 then 'Pas bon Else 'OK End If
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questiondim i as integer i=1 while isempty(cells(i,1)=false i=i+1 Wend
dim i as integer i=1 while isempty(cells(i,1))=false i=i+1 Wend
If IsNumeric(Range("C8").Value) Then MsgBox ("OK") End If If IsDate(Range("C7").Value) Then MsgBox ("OK") End If