Shell()

SteveC24

Registered User.
Local time
Today, 19:40
Joined
Feb 1, 2003
Messages
444
Hello all,

I use Shell() to open an external program - this works absolutely fine on Windows XP - but I believe it is causing a problem on 2000.

I am using the following code:
Code:
Shell """C:\Program Files\Lindenhouse Software Ltd\InvuFirst\InvuFirst"" FirstOffice C:\billingtemp.xls", vbNormalFocus

I get an invalid procedure call on the 2000 machine?

Any ideas?
 
You might try removing the ",vbNormalFocus" part and see if that works.
 
I prefer to use the ShellExecute method to open a file. It does not have the problems that the Shell() function does [as you have discovered].

I have a working example in my Browse [Find a directory or file] sample.
 

Users who are viewing this thread

Back
Top Bottom