Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

run program from cell and pass parameters

$
0
0
Hello,

whilst searching your forum I found the answer to the first issue i had - ie run an external program (terminal emulator) by clicking on cell within excel spreadsheet using the worksheet code

Code:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Column = 1 And Target.Count = 1 And Target.Value <> "" Then Shell "terminal emulator program -ssh " & Target.Value
End Sub

my spreadsheet contains (300+) ip addresses, userids and passwords in columns 1,2,3

I would like to pass the userid/password to the external program.

is this possible?

Viewing all articles
Browse latest Browse all 13329

Trending Articles