+ Reply to Thread
Results 1 to 6 of 6

Embed telnet command in excel cell

  1. #1
    Registered User
    Join Date
    06-02-2009
    Location
    New Brunswick NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Embed telnet command in excel cell

    Hi all,
    I am an excel newbie and I wanted to do something relatively simple. I have a server name in an excel field and I want to be able to double click that field and have excel run the telnet command and get me to the server's login prompt.

    Thanks all.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Embed telnet command in excel cell

    Hi Farcry80, and welcome to the forum.

    This may work for you..

    Let's assume your 'excel field' is cell A1. Right-click on the worksheet tab with the server name in A1 and choose 'View Code'. Paste the following code into the VB Editor window, then close that window.

    Double-click on A1 and see if it works!
    Please Login or Register  to view this content.
    If your server name is not in cell A1, change that reference in the code to your actual cell address.

  3. #3
    Registered User
    Join Date
    06-02-2009
    Location
    New Brunswick NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Embed telnet command in excel cell

    Paul,
    Thanks so much for your effort and eureka it worked.!!!

    I just had another query. Is there anyway for the telnet window when excuted to come on top of the excel spreadsheet so I dont have to alt-tab, to get to it?

    Again thanks a bunch and please let me know how I can rate you.

  4. #4
    Registered User
    Join Date
    09-28-2009
    Location
    Texas, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Embed telnet command in excel cell

    This script was very useful to me as well but am in need of additional help. When I telnet I must enter my username and password and need to run a show inv and show snmp command as well. how would i put this in the script to run the telnet and input my un, pass, and the two commands?

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Embed telnet command in excel cell

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Embed telnet command in excel cell

    Update for Windows 7 users:

    By default, the Telnet client is not installed in Windows 7. You can install the client easily (see here: http://technet.microsoft.com/en-us/l...(v=ws.10).aspx).

    Once you do this, you should be able to use the code shown in my previous post. (Tested on my Win7 machine and confirmed.)

+ 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