Problem in running an application

M

Mohanasundaram

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top