From: TJ89 on
I have a macro, made with a macro recorder. (.mcr file)

I can double click from Windows Explorer and it runs fine.

I would like to exe from VB6. The shell command returns "Invalid
procedure call or argument".

How should I be doing this?

Thanks,
From: Jeff Johnson on
"TJ89" <nospam(a)nospam.net> wrote in message
news:%23qOt$l91IHA.3600(a)TK2MSFTNGP04.phx.gbl...

>I have a macro, made with a macro recorder. (.mcr file)
>
> I can double click from Windows Explorer and it runs fine.
>
> I would like to exe from VB6. The shell command returns "Invalid procedure
> call or argument".
>
> How should I be doing this?

Search this group on Google for the keywords "shellexecute shellexecuteex".
The Shell() function doesn't know how to run a file unless you provide the
path to the executable, but the ShellExecute[Ex]() function can figure this
out from the extension.