ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Problem in running an application (https://www.excelbanter.com/excel-programming/273545-problem-running-application.html)

Mohanasundaram[_2_]

Problem in running an application
 
Hi all,

I would like to execute an application from an excel
macro

If (Target.Cells.Column = 1 And Target.Cells.Row < 1 And
Target.Cells.Text < "") Then
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("telnet fleet")
End If


The problem is that the telnet window closes as soon as it
is opened. But if I open notepad it is not closed as soon
as it is opened.

Please tell me where I am going wrong

Regards,
Mohan.



All times are GMT +1. The time now is 03:09 AM.

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