how to pass a cell as parameter for an external program?

  • Thread starter Thread starter maxbell
  • Start date Start date
M

maxbell

Hi guys,
I need to pass to an external program the content of a cell to be used
as a launch parameter, es: suppose the cell A1 contains "remotePC", I
need to launch the external program VNCClient with "remotePC" as
parameter, that is equivalent to type "VNCClient remotePC"
Is there someone that can help me?
I tried associating the cell to an hypertext link; it open the program
VNCClient, but the content of the cell is not passed to it.
Thanks in advance.
 
Assuming you're passing the value as a command-line parameter to the
program, use

Shell "C:\TestProj\Testexe.exe" & " " & Range("A1").Text

Change "C:\TestProj\Testexe.exe" to the full name of your exe program.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top