K
Ken Slovak - [MVP - Outlook]
Try setting a reference to CDO.DLL in the references for your VBA project.
"_M_a_t_t_" <Matt> wrote in message
news:7F8668BC-7890-4214-BA17-45B096F82CEC@microsoft.com...
> Hopfully this reply is posted. Tried several time, and for some reason its
> not posting.
> When I run the code you posted above I get:
> Compile error:
> Assignment to constant not permitted
> on this line:
> Set CdoSession = CreateObject("MAPI.Session")
"_M_a_t_t_" <Matt> wrote in message
news:7F8668BC-7890-4214-BA17-45B096F82CEC@microsoft.com...
> Hopfully this reply is posted. Tried several time, and for some reason its
> not posting.
> When I run the code you posted above I get:
> Compile error:
> Assignment to constant not permitted
> on this line:
> Set CdoSession = CreateObject("MAPI.Session")