A
artmajster
Function znajdz(gdzie, co_szukac)
loop does not end when "norm" it gets biger from "co_szukac"
function is in Modul
maby someone tell me what is wrong in this code ?Dim norma, wiersz As Double
wiersz = 2
gdzie.Activate ' activate Sheet
Range("A2").Select
norma = ActiveCell.Value
Do While co_szukac > norma
ActiveCell.Offset(1, 0).Select
MsgBox norma
norma = ActiveCell.Value
wiersz = wiersz + 1
Loop znajdz = wiersz
End Function
loop does not end when "norm" it gets biger from "co_szukac"
function is in Modul
