Thanks
Dnolan, submitting the code is a big help. I think I see the cause of the problem.
I think you may have unintentionally confused the issue for us (did for me, anyway). The code that I submitted in this Topic is for Outlook Express, not for Outlook. In one of your earlier messages, you said you wanted to use Outlook, but you did have Outlook Express on your system. So which are you actually trying to do with this code? Because of your statement, I thought that you were going to try this with Outlook Express.
As
Bharat_Naik has noted a number of times, I also believe that this is a problem with your path. You want the Outlook Express path, not the Outlook path. The path you are using ("C:\Program Files\Microsoft
Office\Office\) is the path where Outlook is frequently found, but the program you are calling is msimn.exe which is the email command for Outlook Express, not for Outlook.
The syntax for Outlook is different from what I provided here. This syntax will not work with Outlook. You have mixed the path for Outlook with the command for Outlook Express.
To find the correct path for Outlook Express, try this (may vary depending on operating system):
Right click on Start Button, Left click on Find or Search.
Enter msimn.exe into the field for the file to search for.
In the field for Look In, enter C:\
Click on Find Now or Search Now.
If this file is on your machine, you should see the path if your view is showing Details. That will be the path you need in the @Shell command.
I just did this on a WIN98ME and the path is "C:\Program Files\Outlook Express". And it is in the same path on a WIN98SE system.
If you find the same path, then change your statement to:
Quote:Outlook_Exp_Path = @Chr(34) + "C:\Program Files\Outlook Express\msimn.exe" + @Chr(34)
and let us know the results.
=================================
If you are going to use Outlook then you must use a different set of commands in the Shell statement.
There are a number of Outlook items that can be created with @Shell.
The basic syntax for Outlook with command switches is:
"FullPath\Outlook.exe /c ipm.class"
On March 7, I submitted the correct syntax to use with Outlook on the forum at:
http://www.lantica.com/Forum2/cgi-bin/yabb/YaBB.pl?board=archived;action=display...