Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Open document with Shell
To open a pdf document I can use following line that works.
Shell "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe " & filename I have two questions Question 1: Based on tip I find in different vba groups it seems that it should be possible to generelize the function in order to open any document format. I find codes that looks like: Shell "Start.exe " & filename Shell "Start " & filename (and also other variations) For all these I retrieve "File not found" Question 2: How to let the macro make the opened document active? rgds Jarle |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Open document with Shell
see your other thread
Regards, Peter T "Jarle" wrote in message ... To open a pdf document I can use following line that works. Shell "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe " & filename I have two questions Question 1: Based on tip I find in different vba groups it seems that it should be possible to generelize the function in order to open any document format. I find codes that looks like: Shell "Start.exe " & filename Shell "Start " & filename (and also other variations) For all these I retrieve "File not found" Question 2: How to let the macro make the opened document active? rgds Jarle |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
shell - open document | Excel Programming | |||
Using Shell to open files with more than one word in their name | Excel Programming | |||
Using Shell to open files with more than one word in their name | Excel Programming | |||
Shell can open an application, can it close an app too? | Excel Programming | |||
Shell to different app then open file within | Excel Programming |