Guest User

Untitled

a guest
Jan 29th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Sub PUTTY()
  2.  
  3. i = 6
  4. While (ActiveSheet.Cells(i, 1) <> "")
  5. 'Retrieve IP address
  6. StrCompAddress = ActiveSheet.Cells(i, 1)
  7. i = i + 1
  8. Wend
  9. j = 6
  10. While (ActiveSheet.Cells(i, 10) <> "")
  11. UserName = ActiveSheet.Cells(j, 10)
  12. Wend
  13. k = 6
  14. While (ActiveSheet.Cells(i, 11) <> "")
  15. password = ActiveSheet.Cells(j, 10)
  16. Wend
  17. Dim RetVal
  18. RetVal = Shell("C:UsersPublicDesktopputty.exe " & StrCompAddress & " " & UserName & " " & password & " ")
  19. End Sub
Add Comment
Please, Sign In to add comment