Yes, i see this post yesterday but I don't understand...
It's possible to put the code into a VBA in the excel?

oh! it's very important.. If the computer disconnected the B1 puts to Off line and if it's reconnected puts On line.