Link to home
Start Free TrialLog in
Avatar of bincem
bincem

asked on

Shell function

Hi

 I have problem for opening files in the later versions of Acrobat. How can I modify this line to open the file in any versions of acrobat?

dblfile = Shell("C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe ""C:\Program Files\CheckSystem\External Data\Logical Information\Logical Time\Myfile.pdf", vbMaximizedFocus)

Thanks for your suggestion.
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

ASKER CERTIFIED SOLUTION
Avatar of sajuks
sajuks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, use ShellExecute API

btw, sajuks, i think the only lines originally from me is  Public Function StartDoc ...  not big improvement just make it easier to use (yes many others may have same codes as mine) , anyway just my $0.02 ;-) cheers
Avatar of bincem
bincem

ASKER

Hi sajuks.

That is the perfect solution.

Thank you
Bince
Thanks for the points and grade..
So I better post only the function you need and no longer to the complete explanation of how and what shellexecute is then for getting the points !!!
hey Dhaest, if u see the psots we've both posted at the same time...i dont mind u asking for a split from CS for it.

:-)
To "sajuks": Now is just see it that we both posted at the same time, so just ignore my previous remark.
Thx for the info.
Avatar of bincem

ASKER

Hi Dhaest,

Infact both post came in the same time and I was in a hurry to resolve that issue.
sajuks posted the code along with his answer. I just tried 'sajuks' code and it did work at first time itself. Immediatly I accepted the answer. Now only I realized both of you posted the same solution. Thanks a lot for your effort.

Bince