Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA code for for telnet

all,

I have a ip address in cell J5 on sheet1 called variables. How do I make that particular cell to be active so that whenever I click on that button it telnets using that ip in cell J5.

In the below mentioned code i have to manually select the cell J5 so it becomes active, so it can telnet.



Private Sub CommandButton1_Click()

Shell "path of .exe /t telnet://" & ActiveCell, vbNormalFocus

End Sub



Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default VBA code for for telnet

hi,

change,
ActiveCell
by
Range("J5")
or
Sheets("MySheet").Range("J5")

isabelle


Le 2013-04-12 16:05, deepak a écrit :
all,

I have a ip address in cell J5 on sheet1 called variables. How do I make that particular cell to be active


so that whenever I click on that button it telnets using that ip in cell J5.

In the below mentioned code i have to manually select the cell J5 so it becomes active, so it can telnet.



Private Sub CommandButton1_Click()

Shell "path of .exe /t telnet://" & ActiveCell, vbNormalFocus

End Sub



Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Q On Simple FTP/Telnet Clinton M James[_2_] Excel Programming 1 March 23rd 07 02:48 AM
telnet without sendkeys [email protected] Excel Programming 2 June 20th 05 01:12 PM
sendkeys problem for telnet mike Excel Programming 1 June 15th 05 02:12 PM
How to Close Telnet Session using VBA Donnie Stone Excel Programming 0 November 9th 03 01:19 PM
Need VB script for telnet application John M. Lembo Excel Programming 1 September 5th 03 07:28 PM


All times are GMT +1. The time now is 01:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"