Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there anyway I can get excel to search for, and open the latest
version of a PDF viewer (acrobat). Have attached the current code, but as you can see, if I was to upgrade my pdf viewer to another version, it will not load. I hope this make sense Dim retval retval = Shell("c:\program files\adobe\acrobat 4.0\reader\acrord32 \\server\share\folder\" + ActiveSheet.Range(ActiveWindow.RangeSelection.Addr ess) + ".pdf", vbNormalFocus) End Sub Your help is greatly appreciated ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Shelling to windows start should use the latest version. Dim retval retval = Shell("start acrord32.exe" & "\\server\share\folder\" & _ ActiveSheet.Range(ActiveWindow.RangeSelection.Addr ess) & ".pdf", vbNormalFocus) End Sub -- John johnf202 at hotmail dot com "bondy" wrote in message ... Is there anyway I can get excel to search for, and open the latest version of a PDF viewer (acrobat). Have attached the current code, but as you can see, if I was to upgrade my pdf viewer to another version, it will not load. I hope this make sense Dim retval retval = Shell("c:\program files\adobe\acrobat 4.0\reader\acrord32 \\server\share\folder\" + ActiveSheet.Range(ActiveWindow.RangeSelection.Addr ess) + ".pdf", vbNormalFocus) End Sub Your help is greatly appreciated ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to pass a cell as parameter for an external program? | Excel Discussion (Misc queries) | |||
Copying data to an external Program | New Users to Excel | |||
execute external program when cell reaches certain value | Excel Worksheet Functions | |||
starting an external program with a command line | Excel Programming | |||
starting an external program with a command line | Excel Programming |