PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming problem changing message class

Reply

problem changing message class

 
Thread Tools Rate Thread
Old 28-04-2004, 05:39 PM   #1
Bert
Guest
 
Posts: n/a
Default problem changing message class


I am attempting to use the Omsgclas macro posted at Microsoft, but it
won't work. I have used it before so I don't know what is going on. I
am using Office XP. Since the last time it worked I have installed
and uninstalled the 2003 beta version, so maybe that changed some
setings. I have already modified my security to Medium so that macros
will run.

I stepped through the macro and it is coming up with an error on:

Set ol = New Outlook.Application

any suggestions?
  Reply With Quote
Old 28-04-2004, 05:52 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: problem changing message class

Did you set a reference to the Outlook library in the VBA project?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Bert" <argniw@yahoo.com> wrote in message
news:fada9319.0404280839.48c141ed@posting.google.com...
> I am attempting to use the Omsgclas macro posted at Microsoft, but it
> won't work. I have used it before so I don't know what is going on. I
> am using Office XP. Since the last time it worked I have installed
> and uninstalled the 2003 beta version, so maybe that changed some
> setings. I have already modified my security to Medium so that macros
> will run.
>
> I stepped through the macro and it is coming up with an error on:
>
> Set ol = New Outlook.Application
>
> any suggestions?



  Reply With Quote
Old 01-05-2004, 02:37 PM   #3
Bert
Guest
 
Posts: n/a
Default Re: problem changing message class

I'm not sure where to do this. I have not modified the macro since i
downloaded it.

Also my custom form won't open now.... the contacts that used the form
now display the standard Outlook form. I 'm not sure what's going on.


"Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message news:<esWFN#TLEHA.1472@TK2MSFTNGP12.phx.gbl>...
> Did you set a reference to the Outlook library in the VBA project?
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Bert" <argniw@yahoo.com> wrote in message
> news:fada9319.0404280839.48c141ed@posting.google.com...
> > I am attempting to use the Omsgclas macro posted at Microsoft, but it
> > won't work. I have used it before so I don't know what is going on. I
> > am using Office XP. Since the last time it worked I have installed
> > and uninstalled the 2003 beta version, so maybe that changed some
> > setings. I have already modified my security to Medium so that macros
> > will run.
> >
> > I stepped through the macro and it is coming up with an error on:
> >
> > Set ol = New Outlook.Application
> >
> > any suggestions?

  Reply With Quote
Old 01-05-2004, 04:51 PM   #4
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: problem changing message class

Tools | References

You might want to add the Message Class property to a table view so you can
see what form the contacts are set to use.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Bert" <argniw@yahoo.com> wrote in message
news:fada9319.0405010537.47665279@posting.google.com...
> I'm not sure where to do this. I have not modified the macro since i
> downloaded it.
>
> Also my custom form won't open now.... the contacts that used the form
> now display the standard Outlook form. I 'm not sure what's going on.
>
>
> "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message

news:<esWFN#TLEHA.1472@TK2MSFTNGP12.phx.gbl>...
> > Did you set a reference to the Outlook library in the VBA project?
> >


> >
> > "Bert" <argniw@yahoo.com> wrote in message
> > news:fada9319.0404280839.48c141ed@posting.google.com...
> > > I am attempting to use the Omsgclas macro posted at Microsoft, but it
> > > won't work. I have used it before so I don't know what is going on. I
> > > am using Office XP. Since the last time it worked I have installed
> > > and uninstalled the 2003 beta version, so maybe that changed some
> > > setings. I have already modified my security to Medium so that macros
> > > will run.
> > >
> > > I stepped through the macro and it is coming up with an error on:
> > >
> > > Set ol = New Outlook.Application
> > >
> > > any suggestions?



  Reply With Quote
Old 05-05-2004, 08:20 AM   #5
twiegand
Guest
 
Posts: n/a
Default Re: problem changing message class

I had the same problem after installing Outlook 2003.

Just try to change the line:

"Set ol = New Outlook.Application" to "Set ol = Outlook.Application"

worked for me!

Cheers

thomas

"Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message news:<u152EiIMEHA.2064@TK2MSFTNGP12.phx.gbl>...
> Tools | References
>
> You might want to add the Message Class property to a table view so you can
> see what form the contacts are set to use.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Bert" <argniw@yahoo.com> wrote in message
> news:fada9319.0405010537.47665279@posting.google.com...
> > I'm not sure where to do this. I have not modified the macro since i
> > downloaded it.
> >
> > Also my custom form won't open now.... the contacts that used the form
> > now display the standard Outlook form. I 'm not sure what's going on.
> >
> >
> > "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message

> news:<esWFN#TLEHA.1472@TK2MSFTNGP12.phx.gbl>...
> > > Did you set a reference to the Outlook library in the VBA project?
> > >

>
> > >
> > > "Bert" <argniw@yahoo.com> wrote in message
> > > news:fada9319.0404280839.48c141ed@posting.google.com...
> > > > I am attempting to use the Omsgclas macro posted at Microsoft, but it
> > > > won't work. I have used it before so I don't know what is going on. I
> > > > am using Office XP. Since the last time it worked I have installed
> > > > and uninstalled the 2003 beta version, so maybe that changed some
> > > > setings. I have already modified my security to Medium so that macros
> > > > will run.
> > > >
> > > > I stepped through the macro and it is coming up with an error on:
> > > >
> > > > Set ol = New Outlook.Application
> > > >
> > > > any suggestions?

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off