Outlook 2003 "Error" Message

  • Thread starter Thread starter Joe in Columbus
  • Start date Start date
J

Joe in Columbus

Whenever I execute Macros for automating email messages
to a group of recipients from a MS Access database, I get
an error message the next time I try to launch Outlook.
The message says that a serious error occurred when the
vba addin was last use and asks whether or not you want
to disable the add in (Yes or No). In fact if you don't
choose Yes you are at a standstill because choosing no
just redisplays the message. Then you have to enable the
addin again after launching. There is no clue as to what
the error is because the macros run flawlessly and there
are no problems with the normal funtions of Outlook. The
macros ran without this message in OUTLOOK 2000. Can
anyone explain this?
 
Perhaps there's something in your code that causes an obscure problem with
Outlook 2003. It might be worthwhile to export all your modules, delete the
Vbaproject.otm file and start with a fresh one, importing the code again.

Also try Help | Detect and Repair.
 
I get that mesage when I have forgotten to use a Set statement when
assigning a mailitem (or any object) to another object. For instance

Error
myMailiTime=AnotherMailItem
Should be:
Set myMailiTme = AnotherMailItem

Look for these set errors. If you step through the code it will error out on
the instruction that has the problem.

HTH

Ken
 
Back
Top