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 - Calandaring
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Calendar - 'Run a script'



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 10th 06, 04:36 PM posted to microsoft.public.outlook.calendaring
henry
external usenet poster
 
Posts: 31
Default Calendar - 'Run a script'

I have a rule to move calendar item to a subfolder within mailbox. Due to
this the snipper doesnt post item as tentative.

I'm looking for a script to attach to calendar rule either to post tentative
or mark the item as open so it would post tentative.

I selected a RULE for all incoming meeting appointments and enabled 'run a
script'.

Below is what is shown in my script.

Sub CustomMeetingRequestRule(Item As Outlook.MeetingItem)
Rem Outlook.Add (olAppointmentItem)
Open(Outlook.Inspectors.Item.CurrentItem)
End Sub

Either
Outlook.Add (olAppointmentItem) OR
Open(Outlook.Inspectors.Item.CurrentItem)
is working.

Can anyone give me the right syntax for opening current appt item.

Ads
  #2  
Old August 28th 06, 09:34 PM posted to microsoft.public.outlook.calendaring
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calendar - 'Run a script'

See if this works:

Sub CustomMeetingRequestRule(Item As Outlook.MeetingItem)
Dim appt As Outlook.AppointmentItem
Set appt = Item.GetAssociatedAppointment
appt.BusyStatus = olTentative
appt.Save
Set appt = Nothing
End Sub

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

"Henry" wrote in message ...
I have a rule to move calendar item to a subfolder within mailbox. Due to
this the snipper doesnt post item as tentative.

I'm looking for a script to attach to calendar rule either to post tentative
or mark the item as open so it would post tentative.

I selected a RULE for all incoming meeting appointments and enabled 'run a
script'.

Below is what is shown in my script.

Sub CustomMeetingRequestRule(Item As Outlook.MeetingItem)
Rem Outlook.Add (olAppointmentItem)
Open(Outlook.Inspectors.Item.CurrentItem)
End Sub

Either
Outlook.Add (olAppointmentItem) OR
Open(Outlook.Inspectors.Item.CurrentItem)
is working.

Can anyone give me the right syntax for opening current appt item.

 




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
Rule 'run a script' not running my script [email protected] Outlook and VBA 3 May 30th 06 01:09 PM
Selective Read Receipts VBA using run a script rule prideoflions Outlook and VBA 5 May 26th 06 04:31 PM
Script Not run in outlook 2003 Joey Outlook and VBA 4 May 19th 06 03:10 PM
Script to publish custom form from .OFT to calendar Patrick W. Outlook - Using Forms 2 April 19th 06 03:55 PM
"Run a script" rule triggers but script does not execute Trey Shaffer Outlook and VBA 7 April 8th 06 12:34 AM


All times are GMT +1. The time now is 09:10 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.