Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
External cell references using INDIRECT & ADDRESS Conan Kelly Excel Worksheet Functions 1 December 28th 06 06:05 PM
Deferring conditional formatting? Pheasant Plucker® Excel Discussion (Misc queries) 14 March 17th 06 08:17 PM
Pass or Fail (green or red) criteria for cell? Pheasant Plucker® Excel Discussion (Misc queries) 6 January 27th 06 06:47 AM
dynamic external cell reference bg.itdept Excel Worksheet Functions 4 February 19th 05 03:15 AM
execute external program when cell reaches certain value Brendan DJ Murphy Excel Worksheet Functions 0 February 16th 05 05:25 PM


All times are GMT +1. The time now is 10:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"