Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello, How do I open a .exe file that resides on the c drive. C:\windows\convert.exe This is a file of a conversion chart Thanks EMoe -- EMoe ------------------------------------------------------------------------ EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183 View this thread: http://www.excelforum.com/showthread...hreadid=498262 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i had the same question as you. i found this in another post
Dim sAcrobat As String sAcrobat = "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" Shell sAcrobat |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i had the same question as you. i found this in another post
Dim sAcrobat As String sAcrobat = "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" Shell sAcrobat |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks for the tip Don & for your input Paul! Don it searched the helps section, and found it to be helpful. This is what I came up with. Sub OpenConvertMe() Dim RetVal RetVal = Shell("C:\WINDOWS\Convert.EXE", 1) End Sub This worked fine. Question though, what does the *,1* mean in thi code? Thanks, EMoe : -- EMo ----------------------------------------------------------------------- EMoe's Profile: http://www.excelforum.com/member.php...fo&userid=2318 View this thread: http://www.excelforum.com/showthread.php?threadid=49826 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The '1' in the Shell function indicates that the window should
have normal focus. In VBA, press F2 to open the object browser, and search for VbAppWinStyle and you'll see all the possible symbolic constants that can be used in the Shell function. and the numeric value of those constants. It is poor programming practice to use the numeric value of a constant in place of the name. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "EMoe" wrote in message ... Thanks for the tip Don & for your input Paul! Don it searched the helps section, and found it to be helpful. This is what I came up with. Sub OpenConvertMe() Dim RetVal RetVal = Shell("C:\WINDOWS\Convert.EXE", 1) End Sub This worked fine. Question though, what does the *,1* mean in this code? Thanks, EMoe :) -- EMoe ------------------------------------------------------------------------ EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183 View this thread: http://www.excelforum.com/showthread...hreadid=498262 |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Chip, It is poor programming practice to use the numeric value of a constant in place of the name. Apart from readability, are there other reasons ? Regards, Peter T |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Setting up and Configuration of Excel | |||
In Excel - Use Windows Explorer instead of File Open to open file | Excel Discussion (Misc queries) | |||
Open a file do a macro ( made) and open next succesive file | Excel Programming | |||
Open File or Switch Between Windows if File is Open | Excel Programming | |||
Open File or Switch Between Windows if File is Open | Excel Programming |