A voir également:
- [VBA Excel] if variable = vide than...
- [VBA Excel] if variable = vide than... ✓ - Forum - VB / VBA
- Vba excel worksheet variable ✓ - Forum - Excel
- Vba excel : Les variables ✓ - Forum - Excel
- VBA excel - if ✓ - Forum - VB / VBA
- VBA EXCEL utilisation variable dans condition ✓ - Forum - VB / VBA
3 réponses
Utilisateur anonyme
Bonjour,
Exemple type :
Lupin
Exemple type :
Option Explicit Sub Test() Dim Valeur As Variant Valeur = ActiveCell.Value If (IsEmpty(Valeur)) Then MsgBox "Vide" Else MsgBox "Non-Vide" End If End Sub
Lupin
deepsoul94
pourtant sa réponse était tout à fait correcte. Utiliser isempty est défendable.
Pour précision, IsEmpty (valeur) renvoie true si valeur est vide, False sinon.
Pour précision, IsEmpty (valeur) renvoie true si valeur est vide, False sinon.