A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

VBA code (rules) won't work after reboot



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 19th 10, 08:22 PM posted to microsoft.public.outlook.program_vba
John66
external usenet poster
 
Posts: 2
Default VBA code (rules) won't work after reboot

First off I am not very knowlegeable about Outook or VBA coding so I
apologize in advance for missing the obvious.

I have created some rules in outlook (actually exported/imported from a
functioning account). The rules basically:
-look for an email with an attachment and with a specific word in the
subject line
-move the email to a different folder
-copy the attachment and place it in a shared system folder (done with VBA
code)

The problem I have is the rules will only work until Outlook is closed down
or the server is rebooted. After that the rules partially work (the VBA code
doesn't). The VBA code is still visible in the editor and the rules still
point to the applicable VBA script. However, the code just doesn't run.

To get around the problem, I delete the .otm file and rebuild (via import of
the .bas files) the VBA project, save it, and close the VBA editor. Until I
close down Outlook again the rules all function properly.

Could anyone describe to me where i am going wrong.

Thanks,
John
Ads
  #2  
Old January 19th 10, 09:14 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default VBA code (rules) won't work after reboot

Does other VBA code run? If not, check your macro security settings. You
might also put a Debug.Print statement in the Application_Startup event
handler to "wake up" the VBA environment.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"John66" wrote in message
...
First off I am not very knowlegeable about Outook or VBA coding so I
apologize in advance for missing the obvious.

I have created some rules in outlook (actually exported/imported from a
functioning account). The rules basically:
-look for an email with an attachment and with a specific word in the
subject line
-move the email to a different folder
-copy the attachment and place it in a shared system folder (done with VBA
code)

The problem I have is the rules will only work until Outlook is closed
down
or the server is rebooted. After that the rules partially work (the VBA
code
doesn't). The VBA code is still visible in the editor and the rules still
point to the applicable VBA script. However, the code just doesn't run.

To get around the problem, I delete the .otm file and rebuild (via import
of
the .bas files) the VBA project, save it, and close the VBA editor. Until
I
close down Outlook again the rules all function properly.

Could anyone describe to me where i am going wrong.

Thanks,
John



  #3  
Old January 19th 10, 10:31 PM posted to microsoft.public.outlook.program_vba
John66
external usenet poster
 
Posts: 2
Default VBA code (rules) won't work after reboot

Thank you so very much for your help!

The security settings were the problem.

"Sue Mosher [MVP]" wrote:
Does other VBA code run? If not, check your macro security settings. You
might also put a Debug.Print statement in the Application_Startup event
handler to "wake up" the VBA environment.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"John66" wrote in message
...
First off I am not very knowlegeable about Outook or VBA coding so I
apologize in advance for missing the obvious.

I have created some rules in outlook (actually exported/imported from a
functioning account). The rules basically:
-look for an email with an attachment and with a specific word in the
subject line
-move the email to a different folder
-copy the attachment and place it in a shared system folder (done with VBA
code)

The problem I have is the rules will only work until Outlook is closed
down
or the server is rebooted. After that the rules partially work (the VBA
code
doesn't). The VBA code is still visible in the editor and the rules still
point to the applicable VBA script. However, the code just doesn't run.

To get around the problem, I delete the .otm file and rebuild (via import
of
the .bas files) the VBA project, save it, and close the VBA editor. Until
I
close down Outlook again the rules all function properly.

Could anyone describe to me where i am going wrong.

Thanks,
John



.

  #4  
Old June 22nd 10, 10:49 PM
Chris Judge Chris Judge is offline
Junior Member
 
First recorded activity at Outlookbanter: Jun 2010
Posts: 1
Default

Which security settings? I have this problem also, but it's not clear which security settings in my version of Outlook (Enterprise 2007 12.0.6514.5000 SP2 MSO 12.0.6536.5002) have anything to do with VBA scripts not running after a restart.


Quote:
Originally Posted by Sue Mosher [MVP][_4_] View Post
Does other VBA code run? If not, check your macro security settings. You
might also put a Debug.Print statement in the Application_Startup event
handler to "wake up" the VBA environment.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"John66" wrote in message
...
First off I am not very knowlegeable about Outook or VBA coding so I
apologize in advance for missing the obvious.

I have created some rules in outlook (actually exported/imported from a
functioning account). The rules basically:
-look for an email with an attachment and with a specific word in the
subject line
-move the email to a different folder
-copy the attachment and place it in a shared system folder (done with VBA
code)

The problem I have is the rules will only work until Outlook is closed
down
or the server is rebooted. After that the rules partially work (the VBA
code
doesn't). The VBA code is still visible in the editor and the rules still
point to the applicable VBA script. However, the code just doesn't run.

To get around the problem, I delete the .otm file and rebuild (via import
of
the .bas files) the VBA project, save it, and close the VBA editor. Until
I
close down Outlook again the rules all function properly.

Could anyone describe to me where i am going wrong.

Thanks,
John
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003: My "auto suggest" email address does not work after reboot Hotkey[_2_] Outlook - General Queries 8 November 19th 09 10:09 PM
redemption code doesn't work vonClausowitz Outlook and VBA 8 June 18th 08 12:25 AM
Why doesn't this code work? Dale Outlook and VBA 2 August 7th 06 09:14 PM
Area Code Rules Pavel Outlook - Using Contacts 0 March 29th 06 02:51 AM
How do I prevent rules from turning off after reboot? [email protected] Outlook - Installation 0 January 12th 06 03:52 PM


All times are GMT +1. The time now is 04:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.