Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Business Applications Business Applications
Search Search
Search for:
Tech Support Guy > > >

Solved: Excel 2010 launch external command


(!)

smittyirish's Avatar
smittyirish smittyirish is offline
Member with 3 posts.
THREAD STARTER
 
Join Date: Jun 2012
Experience: Advanced
07-Jun-2012, 10:26 AM #1
Solved: Excel 2010 launch external command
I am wanting to launch Telnet from within Excel to manage my switches. I need to pass the ip address as a parameter to the command. It would look something like telnet x.x.x.x
Jimmy the Hand's Avatar
Member with 1,220 posts.
 
Join Date: Jul 2006
Location: Hungary
Experience: Level 15 Paladin
07-Jun-2012, 10:31 AM #2
Try this:

Code:
Sub test()
    Shell "telnet x.x.x.x"
End Sub
Jimmy
smittyirish's Avatar
smittyirish smittyirish is offline
Member with 3 posts.
THREAD STARTER
 
Join Date: Jun 2012
Experience: Advanced
07-Jun-2012, 10:56 AM #3
that worked great but how do I get it to open as my active window instead of minimized?
Jimmy the Hand's Avatar
Member with 1,220 posts.
 
Join Date: Jul 2006
Location: Hungary
Experience: Level 15 Paladin
07-Jun-2012, 11:17 AM #4
Code:
Sub test()
    Shell "telnet x.x.x.x", vbNormalFocus
End Sub
smittyirish's Avatar
smittyirish smittyirish is offline
Member with 3 posts.
THREAD STARTER
 
Join Date: Jun 2012
Experience: Advanced
07-Jun-2012, 01:17 PM #5
Perfect!
Thanks Jimmy! Works great!
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
excel, telnet

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑