Hi Guys,

i am running useform and i want to add counter as global variable to workbook.

    If counter = 1 Then 
'code
end if
i declared counter in userform above:

Public counter As Long
but when form is starting counter is always = 0, why ?
How to do this ?

Best wishes,
Jacek