Dears,
I am very new in VBA programming and I need your help.
I need:
button in excel, when I pressing it, it connects to equipment through telnet and run one command. Output of this command I want to see in cell (or copy to clipboard, since I have to work with this output).
All I know is how to connect through telnet, but how to get output I couldn't find
:
Function UNIT() As Telnet_Equipment
Set UNIT = New Telnet_Equipment
With UNIT
.Name = "АТС UNIT-004"
.IP = "192.168.64.122"
.Port = 6701
.Login = "user"
.Password = "password"
.ResponseBeforeLogin = "*004*"
.ResponseLogonSucceed = "*Make your choice*>*"
.Prompt = "*" & vbNewLine & ">" & vbNewLine
With .LogonCommands
.AddCommand "ytermenter", "*Ваше имя >*", "", 2000
.AddCommand .Equipment.Login, "*You password >*", "", 200
.AddCommand .Equipment.Password, "*Make your choice*", "", 1000
End With
End With
End Function
Could you please help me with this?
Thanks in advance,
Roman
Bookmarks