Hi,
I'd like my VB Macro in Excel to detect whether there is an active internet connection or not. If there is, I'd like the macro to do something & if there isn't, I'd like the macro to do something else.
Now, I've figured out the first part(I hope) which goes like this :-
ReturnValue = Shell("C:\WINDOWS\system32\ping.exe ""www.tm.net.my""", 1)
I don't know how to do the second part which should look something like this :-
If (ping test is successful) Then (do something) Else (do something else)
Could you please help me on this matter?
ROBERT RAM
I'd like my VB Macro in Excel to detect whether there is an active internet connection or not. If there is, I'd like the macro to do something & if there isn't, I'd like the macro to do something else.
Now, I've figured out the first part(I hope) which goes like this :-
ReturnValue = Shell("C:\WINDOWS\system32\ping.exe ""www.tm.net.my""", 1)
I don't know how to do the second part which should look something like this :-
If (ping test is successful) Then (do something) Else (do something else)
Could you please help me on this matter?
ROBERT RAM