I have a software that I am opening through Excel VBA, it inputs the
username, password and IP address and logs in to that software.

If I supply correct password, the macro works, it opens the software,
supplies username, password and IP and logs in

but if I supply incorrect password, it goes in an endless loop.

When I open the software physically (without the macro) and supply
incorrect password, it gives me a box <<INITIALIZING>> and does not
come out of it for a very long time, I have to end task it to get rid
of it.

My question, can we tell excel vba programatically before the the
initializing line starts that if initializing takes more than 60
seconds, then inturrupt that stage and go forward.

I tried on error resume next but it does not work as it does not gives
any error.

Any ideas???

Please Login or Register  to view this content.