This is my code : and during the "oMailItem.SaveAs("c:/abc.msg","olMSG");"
row I get a "type mismatch" error.
any insight ?
oApp = new Outlook.Application();
oNameSpace= oApp.GetNamespace("MAPI");
i = oApp.ActiveExplorer().Selection.Count;
oMailItem = (Outlook.MailItem)oApp.ActiveExplorer().Selection.Item(1);
oMailCopy = (Outlook.MailItem)oMailItem.Copy();
oMailItem.SaveAs("c:/abc.msg","olMSG");
thanks In advance
Inon Zukerman
Daniel Artuso - 29 Jun 2003 23:10 GMT
Hi,
I thought I sent a reply but I guess it didn't make it.
olMSG is NOT a string. Don't enclose it in quotes.
HTH
Dan Artuso, Access MVP
> This is my code : and during the "oMailItem.SaveAs("c:/abc.msg","olMSG");"
> row I get a "type mismatch" error.
[quoted text clipped - 14 lines]
>
> Inon Zukerman