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

Save Calendar item to iCal format



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 22nd 07, 05:48 PM posted to microsoft.public.outlook.program_forms
Rafael[_2_]
external usenet poster
 
Posts: 28
Default Save Calendar item to iCal format

All,

I have not been able to find a good example on saving an Outlook Calendar
item as iCal (ics) using vbscript from a form. Any idea on what the Const
variable should be set to or is there an example you can share?

Thanks in adavanced!

Rafael
Ads
  #2  
Old October 22nd 07, 05:58 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Save Calendar item to iCal format

When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from All Libraries to Outlook to browse all Outlook objects and their properties, methods, and events. You'll be able to see the AppointmentItem.SaveAs method and the enumeration that determines the constants it supports. You can select any object or member, then press F1 to see its Help topic, which usually will include code examples.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Rafael" wrote in message ...
All,

I have not been able to find a good example on saving an Outlook Calendar
item as iCal (ics) using vbscript from a form. Any idea on what the Const
variable should be set to or is there an example you can share?

Thanks in adavanced!

Rafael

  #3  
Old October 22nd 07, 06:59 PM posted to microsoft.public.outlook.program_forms
Rafael[_2_]
external usenet poster
 
Posts: 28
Default Save Calendar item to iCal format

Thanks Sue.

I had tried this already but the example I see there is for VBA only which I
am not able to traslate to VBScript. The VBScript example only talks about
saving to text. I know the const value is olICal for VBA but not sure what
number that is for VBScript.

"Sue Mosher [MVP-Outlook]" wrote:

When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from All Libraries to Outlook to browse all Outlook objects and their properties, methods, and events. You'll be able to see the AppointmentItem.SaveAs method and the enumeration that determines the constants it supports. You can select any object or member, then press F1 to see its Help topic, which usually will include code examples.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Rafael" wrote in message ...
All,

I have not been able to find a good example on saving an Outlook Calendar
item as iCal (ics) using vbscript from a form. Any idea on what the Const
variable should be set to or is there an example you can share?

Thanks in adavanced!

Rafael


  #4  
Old October 22nd 07, 07:07 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Save Calendar item to iCal format

Same answer - look it up using the object browser and Help. You might as well learn how to do this now, because it's a basic skill for Outlook forms code writing that will save you from typing erros. Step-by-step:

1) Start Outlook VBA - Alt+F11
2) Bring up the object browser - F2.
3) Switch the library to Outlook.
4) Browse or search to locate and select the SaveAs method.
5) Press F1 to bring up the Help topic.
6) Read the information in the Help topic about the Type property. You should learn that all the type constants are members of the OlSaveAsType enumeration.
7) Return to the object browser and browse or search for OlSaveAsType.
8) Select the olICal constant.
9) Copy the Const statement from the bottom of the object browser and paste it into your code.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Rafael" wrote in message ...
Thanks Sue.

I had tried this already but the example I see there is for VBA only which I
am not able to traslate to VBScript. The VBScript example only talks about
saving to text. I know the const value is olICal for VBA but not sure what
number that is for VBScript.

"Sue Mosher [MVP-Outlook]" wrote:

When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from All Libraries to Outlook to browse all Outlook objects and their properties, methods, and events. You'll be able to see the AppointmentItem.SaveAs method and the enumeration that determines the constants it supports. You can select any object or member, then press F1 to see its Help topic, which usually will include code examples.


"Rafael" wrote in message ...
All,

I have not been able to find a good example on saving an Outlook Calendar
item as iCal (ics) using vbscript from a form. Any idea on what the Const
variable should be set to or is there an example you can share?

Thanks in adavanced!

Rafael


  #5  
Old October 22nd 07, 09:04 PM posted to microsoft.public.outlook.program_forms
Rafael[_2_]
external usenet poster
 
Posts: 28
Default Save Calendar item to iCal format

Ah Sue thanks for the step-by-step. That really did it. The answer is 8!

Thanks much once again!

Rafael

"Sue Mosher [MVP-Outlook]" wrote:

Same answer - look it up using the object browser and Help. You might as well learn how to do this now, because it's a basic skill for Outlook forms code writing that will save you from typing erros. Step-by-step:

1) Start Outlook VBA - Alt+F11
2) Bring up the object browser - F2.
3) Switch the library to Outlook.
4) Browse or search to locate and select the SaveAs method.
5) Press F1 to bring up the Help topic.
6) Read the information in the Help topic about the Type property. You should learn that all the type constants are members of the OlSaveAsType enumeration.
7) Return to the object browser and browse or search for OlSaveAsType.
8) Select the olICal constant.
9) Copy the Const statement from the bottom of the object browser and paste it into your code.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Rafael" wrote in message ...
Thanks Sue.

I had tried this already but the example I see there is for VBA only which I
am not able to traslate to VBScript. The VBScript example only talks about
saving to text. I know the const value is olICal for VBA but not sure what
number that is for VBScript.

"Sue Mosher [MVP-Outlook]" wrote:

When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from All Libraries to Outlook to browse all Outlook objects and their properties, methods, and events. You'll be able to see the AppointmentItem.SaveAs method and the enumeration that determines the constants it supports. You can select any object or member, then press F1 to see its Help topic, which usually will include code examples.


"Rafael" wrote in message ...
All,

I have not been able to find a good example on saving an Outlook Calendar
item as iCal (ics) using vbscript from a form. Any idea on what the Const
variable should be set to or is there an example you can share?

Thanks in adavanced!

Rafael


 




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
Import iCal = Unread item Patrick Outlook - Calandaring 1 September 1st 07 03:58 AM
unable to save item on calendar JJ Outlook - Calandaring 0 August 20th 07 05:16 PM
How can I export an entire Outlook 2003 Calendar into iCal format? jeremybautista Outlook - Calandaring 1 April 15th 07 10:59 PM
Couldn't save item on calendar. JCDS Outlook - Calandaring 0 February 22nd 07 03:48 PM
Outlook say 'can't save item' in Calendar Dan Kohn Outlook - Calandaring 0 January 9th 06 11:00 PM


All times are GMT +1. The time now is 11:46 AM.


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