 |
|
 |
|
Next: Programming VBA: ol 2003 contacts form questions
|
| Author |
Message |
External

Since: Aug 07, 2007 Posts: 2
|
(Msg. 1) Posted: Tue Aug 07, 2007 6:41 am
Post subject: Outlook 2007 - Code in ThisOutlookSession Stops Working Archived from groups: microsoft>public>outlook>program_vba (more info?)
|
|
|
Have a function in ThisOutlookSession which is called by a rule when
email arrives from specific persons. Worked perfectly for awhile, then
stopped working. Reinstalled Outlook, put the function back in, and it
started working again. Now it has stopped again. I think this is the
main clue: I have "Warnings for all macros" checked in Trust Center.
While it was working, I got the warning every time. Now I never get
it. It behaves as if I had "No warnings and disable all macros"
checked instead. Is this some kind of bug in Trust Center? Anyone
know how to check the registry to see what the actual setting is? By
the way, this time before it stopped working I saw a dialog to the
effect that the function had somehow failed, after a triggering email
had arrived. After that, it no longer worked, and no messages are
seen. Don't know if that message was cause or effect. |
|
| Back to top |
|
 |  |
|
Michael Bauer [MVP - Outl
|
External

Since: Aug 04, 2006 Posts: 594
|
(Msg. 2) Posted: Wed Aug 08, 2007 7:44 am
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Probably Outlook has disabled your code after the failure. You can check
that via Help/Disabled Items and see if VBA is listed there.
So, to get it reliably running you need to fix your code.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
Am Tue, 07 Aug 2007 06:41:08 -0700 schrieb willard.handley.TakeThisOut@gmail.com:
> Have a function in ThisOutlookSession which is called by a rule when
> email arrives from specific persons. Worked perfectly for awhile, then
> stopped working. Reinstalled Outlook, put the function back in, and it
> started working again. Now it has stopped again. I think this is the
> main clue: I have "Warnings for all macros" checked in Trust Center.
> While it was working, I got the warning every time. Now I never get
> it. It behaves as if I had "No warnings and disable all macros"
> checked instead. Is this some kind of bug in Trust Center? Anyone
> know how to check the registry to see what the actual setting is? By
> the way, this time before it stopped working I saw a dialog to the
> effect that the function had somehow failed, after a triggering email
> had arrived. After that, it no longer worked, and no messages are
> seen. Don't know if that message was cause or effect. |
|
| Back to top |
|
 |  |
External

Since: Feb 11, 2005 Posts: 21627
|
(Msg. 3) Posted: Wed Aug 08, 2007 8:11 am
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In Outlook 2007, that would be Tools | Trust Center | Add-ins | Disabled Items.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Michael Bauer [MVP - Outlook]" <mb.RemoveThis@mvps.org> wrote in message news:1tbj2i7sytzmu$.13ahdof55r3i5.dlg@40tude.net...
>
>
> Probably Outlook has disabled your code after the failure. You can check
> that via Help/Disabled Items and see if VBA is listed there.
>
> So, to get it reliably running you need to fix your code.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
> Organize eMails:
> <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>
> Am Tue, 07 Aug 2007 06:41:08 -0700 schrieb willard.handley.RemoveThis@gmail.com:
>
>> Have a function in ThisOutlookSession which is called by a rule when
>> email arrives from specific persons. Worked perfectly for awhile, then
>> stopped working. Reinstalled Outlook, put the function back in, and it
>> started working again. Now it has stopped again. I think this is the
>> main clue: I have "Warnings for all macros" checked in Trust Center.
>> While it was working, I got the warning every time. Now I never get
>> it. It behaves as if I had "No warnings and disable all macros"
>> checked instead. Is this some kind of bug in Trust Center? Anyone
>> know how to check the registry to see what the actual setting is? By
>> the way, this time before it stopped working I saw a dialog to the
>> effect that the function had somehow failed, after a triggering email
>> had arrived. After that, it no longer worked, and no messages are
>> seen. Don't know if that message was cause or effect. |
|
| Back to top |
|
 |  |
External

Since: Aug 07, 2007 Posts: 2
|
(Msg. 4) Posted: Wed Aug 08, 2007 1:29 pm
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Aug 8, 1:44 am, "Michael Bauer [MVP - Outlook]" <m....TakeThisOut@mvps.org>
wrote:
> Probably Outlook has disabled your code after the failure. You can check
> that via Help/Disabled Items and see if VBA is listed there.
>
> So, to get it reliably running you need to fix your code.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
> Organize eMails:
> <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>
> Am Tue, 07 Aug 2007 06:41:08 -0700 schrieb willard.hand....TakeThisOut@gmail.com:
>
>
>
> > Have a function in ThisOutlookSession which is called by a rule when
> > email arrives from specific persons. Worked perfectly for awhile, then
> > stopped working. Reinstalled Outlook, put the function back in, and it
> > started working again. Now it has stopped again. I think this is the
> > main clue: I have "Warnings for all macros" checked in Trust Center.
> > While it was working, I got the warning every time. Now I never get
> > it. It behaves as if I had "No warnings and disable all macros"
> > checked instead. Is this some kind of bug in Trust Center? Anyone
> > know how to check the registry to see what the actual setting is? By
> > the way, this time before it stopped working I saw a dialog to the
> > effect that the function had somehow failed, after a triggering email
> > had arrived. After that, it no longer worked, and no messages are
> > seen. Don't know if that message was cause or effect.- Hide quoted text -
>
> - Show quoted text -
Vielen dank, Michael, aber leiter ... that's apparently not the
problem. No items are disabled. Have there been no reports of Outlook
behaving as if a person had checked "...disable all macros?" Thanks
for your help. |
|
| Back to top |
|
 |  |
|
Michael Bauer [MVP - Outl
|
External

Since: Aug 04, 2006 Posts: 594
|
(Msg. 5) Posted: Wed Aug 08, 2007 8:05 pm
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
You're right. But at least for the German Outlook it's also available under
the Help menu.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
Am Wed, 8 Aug 2007 08:11:13 -0400 schrieb Sue Mosher [MVP-Outlook]:
> In Outlook 2007, that would be Tools | Trust Center | Add-ins | Disabled
Items.
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "Michael Bauer [MVP - Outlook]" <mb DeleteThis @mvps.org> wrote in message
news:1tbj2i7sytzmu$.13ahdof55r3i5.dlg@40tude.net...
>>
>>
>> Probably Outlook has disabled your code after the failure. You can check
>> that via Help/Disabled Items and see if VBA is listed there.
>>
>> So, to get it reliably running you need to fix your code.
>>
>> --
>> Viele Gruesse / Best regards
>> Michael Bauer - MVP Outlook
>> Organize eMails:
>>
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>>
>> Am Tue, 07 Aug 2007 06:41:08 -0700 schrieb willard.handley DeleteThis @gmail.com:
>>
>>> Have a function in ThisOutlookSession which is called by a rule when
>>> email arrives from specific persons. Worked perfectly for awhile, then
>>> stopped working. Reinstalled Outlook, put the function back in, and it
>>> started working again. Now it has stopped again. I think this is the
>>> main clue: I have "Warnings for all macros" checked in Trust Center.
>>> While it was working, I got the warning every time. Now I never get
>>> it. It behaves as if I had "No warnings and disable all macros"
>>> checked instead. Is this some kind of bug in Trust Center? Anyone
>>> know how to check the registry to see what the actual setting is? By
>>> the way, this time before it stopped working I saw a dialog to the
>>> effect that the function had somehow failed, after a triggering email
>>> had arrived. After that, it no longer worked, and no messages are
>>> seen. Don't know if that message was cause or effect. |
|
| Back to top |
|
 |  |
External

Since: Feb 11, 2005 Posts: 21627
|
(Msg. 6) Posted: Wed Aug 08, 2007 8:05 pm
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Great! That's easier for people to find. THanks for pointing thatout.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Michael Bauer [MVP - Outlook]" <mb.TakeThisOut@mvps.org> wrote in message news:7haxgpy1dzwy$.prvfw7xdj4va.dlg@40tude.net...
>
>
> You're right. But at least for the German Outlook it's also available under
> the Help menu.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
> Organize eMails:
> <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>
> Am Wed, 8 Aug 2007 08:11:13 -0400 schrieb Sue Mosher [MVP-Outlook]:
>
>> In Outlook 2007, that would be Tools | Trust Center | Add-ins | Disabled
> Items.
>>
>> --
>> Sue Mosher, Outlook MVP
>> Author of Microsoft Outlook 2007 Programming:
>> Jumpstart for Power Users and Administrators
>> http://www.outlookcode.com/article.aspx?id=54
>>
>>
>> "Michael Bauer [MVP - Outlook]" <mb.TakeThisOut@mvps.org> wrote in message
> news:1tbj2i7sytzmu$.13ahdof55r3i5.dlg@40tude.net...
>>>
>>>
>>> Probably Outlook has disabled your code after the failure. You can check
>>> that via Help/Disabled Items and see if VBA is listed there.
>>>
>>> So, to get it reliably running you need to fix your code.
>>>
>>> --
>>> Viele Gruesse / Best regards
>>> Michael Bauer - MVP Outlook
>>> Organize eMails:
>>>
> <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>>>
>>> Am Tue, 07 Aug 2007 06:41:08 -0700 schrieb willard.handley.TakeThisOut@gmail.com:
>>>
>>>> Have a function in ThisOutlookSession which is called by a rule when
>>>> email arrives from specific persons. Worked perfectly for awhile, then
>>>> stopped working. Reinstalled Outlook, put the function back in, and it
>>>> started working again. Now it has stopped again. I think this is the
>>>> main clue: I have "Warnings for all macros" checked in Trust Center.
>>>> While it was working, I got the warning every time. Now I never get
>>>> it. It behaves as if I had "No warnings and disable all macros"
>>>> checked instead. Is this some kind of bug in Trust Center? Anyone
>>>> know how to check the registry to see what the actual setting is? By
>>>> the way, this time before it stopped working I saw a dialog to the
>>>> effect that the function had somehow failed, after a triggering email
>>>> had arrived. After that, it no longer worked, and no messages are
>>>> seen. Don't know if that message was cause or effect. |
|
| Back to top |
|
 |  |
|
Michael Bauer [MVP - Outl
|
External

Since: Aug 04, 2006 Posts: 594
|
(Msg. 7) Posted: Thu Aug 09, 2007 2:16 am
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I don't know that reports, maybe it's the Run-a-Script-Rule that isn't as
stable as it should be.
However, you might check what happens if you set the macro security settings
to Very Low. If that doesn't help you could show your code here, maybe we
find an error.
(As setting commas in German is very different from the English rules, you
did it absolutely correct. Really good
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
Am Wed, 08 Aug 2007 13:29:50 -0700 schrieb willard.handley.DeleteThis@gmail.com:
> On Aug 8, 1:44 am, "Michael Bauer [MVP - Outlook]" <m....DeleteThis@mvps.org>
> wrote:
>> Probably Outlook has disabled your code after the failure. You can check
>> that via Help/Disabled Items and see if VBA is listed there.
>>
>> So, to get it reliably running you need to fix your code.
>>
>> --
>> Viele Gruesse / Best regards
>> Michael Bauer - MVP Outlook
>> Organize eMails:
>>
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>>
>> Am Tue, 07 Aug 2007 06:41:08 -0700 schrieb willard.hand....DeleteThis@gmail.com:
>>
>>
>>
>>> Have a function in ThisOutlookSession which is called by a rule when
>>> email arrives from specific persons. Worked perfectly for awhile, then
>>> stopped working. Reinstalled Outlook, put the function back in, and it
>>> started working again. Now it has stopped again. I think this is the
>>> main clue: I have "Warnings for all macros" checked in Trust Center.
>>> While it was working, I got the warning every time. Now I never get
>>> it. It behaves as if I had "No warnings and disable all macros"
>>> checked instead. Is this some kind of bug in Trust Center? Anyone
>>> know how to check the registry to see what the actual setting is? By
>>> the way, this time before it stopped working I saw a dialog to the
>>> effect that the function had somehow failed, after a triggering email
>>> had arrived. After that, it no longer worked, and no messages are
>>> seen. Don't know if that message was cause or effect.- Hide quoted text
-
>>
>> - Show quoted text -
>
> Vielen dank, Michael, aber leiter ... that's apparently not the
> problem. No items are disabled. Have there been no reports of Outlook
> behaving as if a person had checked "...disable all macros?" Thanks
> for your help. |
|
| Back to top |
|
 |  |
External

Since: Feb 11, 2005 Posts: 21627
|
(Msg. 8) Posted: Thu Aug 09, 2007 7:03 am
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
These symptoms can also come up if another program starts Outlook with no UI. Shutting down Outlook and making sure Outlook.exe is not running usually makes it possible to restart Outlook and get VBA working again.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Michael Bauer [MVP - Outlook]" <mb RemoveThis @mvps.org> wrote in message news:xx3g86shimr6$.1y2l6h81osvtx$.dlg@40tude.net...
>
>
> I don't know that reports, maybe it's the Run-a-Script-Rule that isn't as
> stable as it should be.
>
> However, you might check what happens if you set the macro security settings
> to Very Low. If that doesn't help you could show your code here, maybe we
> find an error.
>
> (As setting commas in German is very different from the English rules, you
> did it absolutely correct. Really good
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
> Organize eMails:
> <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>
> Am Wed, 08 Aug 2007 13:29:50 -0700 schrieb willard.handley RemoveThis @gmail.com:
>
>> On Aug 8, 1:44 am, "Michael Bauer [MVP - Outlook]" <m... RemoveThis @mvps.org>
>> wrote:
>>> Probably Outlook has disabled your code after the failure. You can check
>>> that via Help/Disabled Items and see if VBA is listed there.
>>>
>>> So, to get it reliably running you need to fix your code.
>>>
>>> --
>>> Viele Gruesse / Best regards
>>> Michael Bauer - MVP Outlook
>>> Organize eMails:
>>>
> <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>>>
>>> Am Tue, 07 Aug 2007 06:41:08 -0700 schrieb willard.hand... RemoveThis @gmail.com:
>>>
>>>
>>>
>>>> Have a function in ThisOutlookSession which is called by a rule when
>>>> email arrives from specific persons. Worked perfectly for awhile, then
>>>> stopped working. Reinstalled Outlook, put the function back in, and it
>>>> started working again. Now it has stopped again. I think this is the
>>>> main clue: I have "Warnings for all macros" checked in Trust Center.
>>>> While it was working, I got the warning every time. Now I never get
>>>> it. It behaves as if I had "No warnings and disable all macros"
>>>> checked instead. Is this some kind of bug in Trust Center? Anyone
>>>> know how to check the registry to see what the actual setting is? By
>>>> the way, this time before it stopped working I saw a dialog to the
>>>> effect that the function had somehow failed, after a triggering email
>>>> had arrived. After that, it no longer worked, and no messages are
>>>> seen. Don't know if that message was cause or effect.- Hide quoted text
> -
>>>
>>> - Show quoted text -
>>
>> Vielen dank, Michael, aber leiter ... that's apparently not the
>> problem. No items are disabled. Have there been no reports of Outlook
>> behaving as if a person had checked "...disable all macros?" Thanks
>> for your help. |
|
| Back to top |
|
 |  |
|
Michael Bauer [MVP - Outl
|
External

Since: Aug 04, 2006 Posts: 594
|
(Msg. 9) Posted: Thu Aug 09, 2007 8:02 pm
Post subject: Re: Outlook 2007 - Code in ThisOutlookSession Stops Working [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks Sue, I didn't know that.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
Am Thu, 9 Aug 2007 07:03:52 -0400 schrieb Sue Mosher [MVP-Outlook]:
> These symptoms can also come up if another program starts Outlook with no
UI. Shutting down Outlook and making sure Outlook.exe is not running usually
makes it possible to restart Outlook and get VBA working again. |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|