Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Shell (CStr([GoogleEarthExecutableLocation]) & " " & sfilename)
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The Shell command is used to start another application. In this case,
it would appear that there is a named range called GoogleEarthExecutable that contains the full file name of the Goggle Earth program. The square brackets [ ] cause "GoogleEarthExecutable" to be replace with the contents of that cell. Then, the CStr converts that text into a string data format. The & " " & sfilename appends a space followed by the contents of the variable named sfilename to the exe file name. Finally, that whole string is passed to Shell which executes it. It is essentially the equivalent to Shell "C:\Program Files\GoogleEarth.exe C:\SomeFileName.txt" This starts the program C:\Program Files\GoogleEarth.exe and passes the text "C:\SomeFileName.txt" to the program, which uses it in some fashion unbeknownst to me. Cordially, Chip Pearson Microsoft Most Valuable Professional, Excel, 1998 - 2010 Pearson Software Consulting, LLC www.cpearson.com On Mon, 15 Mar 2010 10:49:01 -0700, Ayo wrote: Shell (CStr([GoogleEarthExecutableLocation]) & " " & sfilename) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro code to put series name next to individual line in line grap | Charts and Charting in Excel | |||
To join 1st line & 2nd line of text in text in Excel VBA Code | Excel Programming | |||
Code to read file in reverse fast line by line | Excel Programming | |||
Single line of code with line separator | Excel Programming | |||
Continue line of VBA code on the next line | Excel Programming |