Results 1 to 5 of 5

Macro to open Putty and paste contents

Threaded View

  1. #1
    Registered User
    Join Date
    05-29-2018
    Location
    India
    MS-Off Ver
    2016
    Posts
    2

    Macro to open Putty and paste contents

    i,

    I'm new to excel macro, and I have this big requirement to complete..

    Requirement:

    1. Connect to putty through excel macro - the login details should betaken from cells in excel.
    2. Run few commands in putty - these commands also will be added in the excel macro.
    3. Results of the commands needs to be displayed in the excel.

    I have this below but it opens when i double click the device name in the cell.
    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
        Shell "C:\Users\mohiibrahim\Desktop\putty.exe -ssh -l a-username" & ActiveCell, 1
        Cancel = True
    End Sub
    Drawbacks in this is it is not taking the the password from cells in excel and not displaying the output in excel


    Basically, on click of a button, it should get connected to putty and run the commands and results should be displayed.

    Any other solution also accepted

    Any help would be appreciated...!!!

    Thanks,
    Last edited by alansidman; 08-20-2019 at 09:35 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to open MS Outlook and paste cell contents into body
    By CheekyDevil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2017, 02:41 AM
  2. Trying to open Putty from Excel which contains list of servers.
    By prabsriv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2017, 09:55 AM
  3. Need Macro to open PuTTY and connect to a linux server
    By balajinatarajan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2016, 01:24 PM
  4. [SOLVED] Find the next open column to the right and paste contents
    By TheScott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-16-2015, 01:07 PM
  5. Replies: 1
    Last Post: 06-15-2014, 07:26 PM
  6. Putty macro help
    By poodlesplumbs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2013, 01:34 AM
  7. Replies: 1
    Last Post: 10-19-2005, 12:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1