how to pass a cell as parameter for an external program?
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. |
how to pass a cell as parameter for an external program?
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) "maxbell" wrote in message oups.com... 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. |
All times are GMT +1. The time now is 04:32 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com