• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

if the value in the cell is null (or different from a determinate value)

Katılım
28 Mayıs 2010
Mesajlar
42
Excel Vers. ve Dili
Office Proffessionel Plus Excel 2016
Fransizca
English
Hi,

You will find joined a sheet with a macro I wrote. The thing is I want to test if the value in the cell is null (or different from a determinate value) and I am looking for the logic sign that means 'different from'. In other programs I used it usually was '!=" but here it does not seem to work.
I would be very grateful if you had any idea about how to deal with that.

Thank you very much,
Gulgun
 

Ekli dosyalar

Hi,

Kod:
Sub example()
Range("B2:B65536").ClearContents
For counter = 2 To [A65536].End(3).Row
    With Worksheets("Feuil1")
        If .Cells(counter, 1) = 0 Or .Cells(counter, 1) = "" Then
            .Cells(counter, 2) = "Non nul"
        End If
    End With
Next counter
End Sub

Is this what you want?

.
 
Son düzenleme:
Haklısınız. Düzelttim Halit Bey, teşekkürler..

.
 
Cok tesekkurler yardimlariniz icin!
 
Geri
Üst