Logo 
Search:

MS Office Forum

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds

Check if user has an internet connection

  Asked By: Pedro    Date: Sep 29    Category: MS Office    Views: 749
  

I need to know how to check to see if a user is currently connected to
the internet. I need to use VBA doing it. The purpose is to stop
events from happening if the user cannot currently access the internet
because the first thing I want them to do before they can do anything
else is upload something to an FTP site. I have the code to upload
information to the FTP site, save, and print (in that order). If they
are not connected to the internet and can't upload I don't want them
to be able to do the other two steps.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Frederick Greene     Answered On: Sep 29

What about the code  you're using to do the FTP? It presumably times out or
otherwise detects a failure. Just use that status.

 
Answer #2    Answered By: Kelly Bell     Answered On: Sep 29

I've always just coded the retrieval of a small file, and if it doesn't
exist, I know there is no connection.

 
Didn't find what you were looking for? Find more on Check if user has an internet connection Or get search suggestion and latest updates.




Tagged: