+ Reply to Thread
Results 1 to 4 of 4

Active Ping from within Excel using data from spreadsheet

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Joplin, MO
    MS-Off Ver
    Excel 2003
    Posts
    12

    Active Ping from within Excel using data from spreadsheet

    First off thanks for looking. What I am wanting to do is to click a button marcro to check a ping from the internet by using some data in a field inside the spreadsheet.

    I already know this will do the DOS window and check that ping:

    RetVal = Shell("PING ""Yahoo.com""", 1)

    What I am needing this to do is replace the ""Yahoo.com" with my ip address that part of it will be found in cell A2 in my spreadsheet. My IP will be some thing like this. 25.XX.XX.200 the XX's will need to be grabbed from the cell A2 which would contain the following.

    A
    2 7879


    So the macro would actually ping 25.78.79.200.

    All i need is to see the window open... hit that IP and it will let me know if that is online or not...then close.

    Any help would be greatly appreciated !

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Active Ping from within Excel using data from spreadsheet

    Is the first number always a single digit?
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    01-13-2011
    Location
    Joplin, MO
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Active Ping from within Excel using data from spreadsheet

    Sorry, but that was my terrible attempt to show cell A2. lol

    To be more clear the "25" in the IP will be constant and then it will need to grab the "78" from the 4 digit number and the set the "." and then grab the "79" and then go to ping.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Active Ping from within Excel using data from spreadsheet

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1