ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA code for for telnet (https://www.excelbanter.com/excel-programming/448598-vba-code-telnet.html)

deepak

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

isabelle

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



All times are GMT +1. The time now is 09:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com