Değerli Üstatlar,
Bir döngü kuruyorum bu döngüde WorksheetFunction.CountIf fonksiyonunu kullanmam lazım hata alıyorum. Nerede hatam var?
Sub ArtAzElmn()
ssut = [A5].End(xlToRight).Column + 1
Cells(5, ssut).Value = "Artış/Azalış"
For x = 6 To WorksheetFunction.CountIf("B", "*")
Cells(x, ssut).Formula = "=IFERROR(RC[-1]/RC[-2]-1,0)"
Next x
End Sub
Bir döngü kuruyorum bu döngüde WorksheetFunction.CountIf fonksiyonunu kullanmam lazım hata alıyorum. Nerede hatam var?
Sub ArtAzElmn()
ssut = [A5].End(xlToRight).Column + 1
Cells(5, ssut).Value = "Artış/Azalış"
For x = 6 To WorksheetFunction.CountIf("B", "*")
Cells(x, ssut).Formula = "=IFERROR(RC[-1]/RC[-2]-1,0)"
Next x
End Sub
