Consulting

Results 1 to 4 of 4

Thread: Detect Internet Connection

  1. #1

    Detect Internet Connection

    Looking for a simple method to test if the computer is connected to the internet. True or false.

    I have a program that is used across several remote locations and it needs to determine if there is an internet connection.

    I'm using dropbox as a repository for the files.

    Any ideas?
    ttfn

    Kicker

  2. #2

  3. #3
    Quote Originally Posted by OBP View Post
    Darn that seems simple....

    If My.Computer.Network.IsAvailable Then MsgBox("Computer is connected.")Else MsgBox("Computer is not connected.")EndIf

    I tried this but it is asking me to define "My." Is that the name of the application or possibly a control or form? I really appreciate your replies.


    ttfn

    Kicker

  4. #4
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,296
    Location
    OK, that code is only available for VB and not VBA.
    I have found other code that are little more complicated, this guy has listed a few.
    https://www.mrexcel.com/forum/excel-...onnection.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •