as i already said i found this code in net.... and trying to implement it for my use.

i can capture the login details ..but not able to capture logout details and i don't want form to be closed once the login details were entered.

in thisworkbook i tried to change the userform visibility from true to false but it didnt worked for me.

once again i confirm that this is not my code i found this while searching in net.