VBA plugin error

  • Thread starter Thread starter DL
  • Start date Start date
D

DL

OL2003 - OL / Office2k / Win2k updated
Previously I used OL2k, in which I had added some VBA code, available from
an MVP site, in order to to prompt for the folder location of any sent msg.
All worked ok. I upgraded to OL2003 without a problem, however on restarting
OL I occasionally get an error 'plugin has caused a problem, do you wish to
disable...'
Is there a solution to this?
TY
 
Am Fri, 7 Oct 2005 23:59:42 +0100 schrieb DL:

One problem may be the use of CreateObject("Outlook.Application"). Does
your code contain this function? Else please show the code that someone
can have a look over it.
 
Am Sat, 8 Oct 2005 10:19:30 +0100 schrieb DL:

Ok, so please try my suggestion.
 
Am Sat, 8 Oct 2005 14:04:16 +0100 schrieb DL:

Yes. You don´t need the returned object, use the intrinsic Application
object instead (i.e. replace objApp by Application".
 
Well I've studied the vba help file and, being a little dim on vba, I'm
still unclear as to what to replace
Set objApp = CreateObject("Outlook.Application") with

Also;
' // ' at the line start, comments out a code line?

TY
 
Am Tue, 11 Oct 2005 20:30:11 +0100 schrieb DL:

You´re sure not have accidentally read a PHP help? :-)

For making comments please just write a ' at the beginning of the line.

In VBA there´s an Application object instantiated already. That is you don´t
need neither to create another one with CreateObject nor another variable
pointing to Application.

Please

1) delete the declaration of objApp,

2) then place the cursor in any objApp variable, press CTRL+H, and replace
objApp by Application,

3) now delete the CreateObject line.
 
Back
Top