I want to make this script making "if", "else" choises and according on the output then to send different commands.
For example
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Shell "C:\Program Files\PuTTY\putty.exe -l "username" -pw "password" -ssh " & ActiveCell, 1
Cancel = True
SendKeys "show int des"
SendKeys "{ENTER}"
End Sub
i want to edit this script and add something like after the "sh int des" command if the output is "red" send this command.. if its "Green" and "Red" then send this.
Sorry for terrible english.
Thanks !!