+ Reply to Thread
Results 1 to 7 of 7

Ping an IP (using the IP from a cell)

  1. #1
    Registered User
    Join Date
    06-24-2008
    Posts
    98

    Ping an IP (using the IP from a cell)

    Does anyone know how to Ping an IP (using the IP from a cell)

    so if A1 is 10.65.1.1
    Ping 10.65.1.1 and give a msgbox saying "sucessful" or "not successful"

    I can do it using VBScript but cant work out how to do it in VBA.

    Please Login or Register  to view this content.
    I have searched but cant find anything that is close to what I need.

    Any help would be fab

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Ping an IP (using the IP from a cell)

    The literal equivalent is not that different:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    06-24-2008
    Posts
    98

    Re: Ping an IP (using the IP from a cell)

    That is perfect! You are brilliant!

    Thank you soooooo much

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Ping an IP (using the IP from a cell)

    Hey Donkey () - how's tricks? Any plans for a foray into London anytime soon?

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Ping an IP (using the IP from a cell)

    Hey! No immediate plans to leave deepest darkest Suffolk but you never know Trust the family is doing well!

    (hijack over before I have to infract myself!)

  6. #6
    Registered User
    Join Date
    06-24-2008
    Posts
    98

    Re: Ping an IP (using the IP from a cell)

    I know I am being picky now

    Is there any way to stop the black box popping up? Or have it minimized so it doesnt show?

    I have attached a screenshot of what I mean

    Thanks again for all your help
    Attached Images Attached Images

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Ping an IP (using the IP from a cell)

    Not with that method, I don't think. You could use API functions instead - simplistic version below. The Ping function returns True if successful:
    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