VBA Read from Excel Launch App to Connect using SSH or SCP

kdwdillson

New Member
Joined
Oct 8, 2017
Messages
3
Please help. Trying to write VBA (beginner). Not working. I have 2 worksheets; servers and password.
I want vba code to launch either putty (SSH) or winscp (SCP) when clicking on either SSH or SCP to right of FQDN. The launched application should connect to that FQDN. In example, if I click on SSH to right of server2.acme.com, it should launch a putty session, connecting to server2.acme.com. Or is I click on SCP to right of server2.acme.com it should launch a winscp session, connecting to server2.acme.com. apps: c:\temp\winscp\winscp.exe & c:\temp\puty\putty.exe.

Please provide vba source code how this will work. Thank you!

I struggled writing vba to read userID&password and passing credential to app.

[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Env[/TD]
[TD]App[/TD]
[TD]Alias[/TD]
[TD]FQDN[/TD]
[TD]Protocol[/TD]
[TD]Protocol[/TD]
[/TR]
[TR]
[TD]Prod[/TD]
[TD]w1[/TD]
[TD]p[/TD]
[TD]server1.acme.com[/TD]
[TD]ssh[/TD]
[TD]scp[/TD]
[/TR]
[TR]
[TD]PreProd[/TD]
[TD]x1[/TD]
[TD]pp[/TD]
[TD]server2.acme.com[/TD]
[TD]ssh[/TD]
[TD]scp[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]y1[/TD]
[TD]t[/TD]
[TD]server3.acme.com[/TD]
[TD]ssh[/TD]
[TD]scp[/TD]
[/TR]
[TR]
[TD]Dev[/TD]
[TD]z1[/TD]
[TD]d[/TD]
[TD]server4.acme.com[/TD]
[TD]ssh[/TD]
[TD]scp[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top