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

Pull Data From Non-Default Calendar



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 23rd 10, 04:38 PM posted to microsoft.public.outlook.program_vba
eckert1961
external usenet poster
 
Posts: 4
Default Pull Data From Non-Default Calendar

Hello,

I am running Outlook 2003 and I have a macro that pulls data from the
default calendar. I created a new calendar named "Instructor Schedule" which
is a subfolder under Calendar. I would like to change the code so that the
data is pulled from the new calendar. Currently I am using the following code.

Set colCal = objNS.GetDefaultFolder(olFolderCalendar).Items

What change would I need to implement to get my desired results? Thanks.

Regards,
Chris
--
Regards,
Chris
Ads
  #2  
Old March 23rd 10, 05:38 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Pull Data From Non-Default Calendar

Set colCal =
objNS.GetDefaultFolder(olFolderCalendar).Folders.I tem("Instructor
Schedule").Items


--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"eckert1961" wrote in message
...
Hello,

I am running Outlook 2003 and I have a macro that pulls data from the
default calendar. I created a new calendar named "Instructor Schedule"
which
is a subfolder under Calendar. I would like to change the code so that the
data is pulled from the new calendar. Currently I am using the following
code.

Set colCal = objNS.GetDefaultFolder(olFolderCalendar).Items

What change would I need to implement to get my desired results? Thanks.

Regards,
Chris
--
Regards,
Chris


  #3  
Old March 23rd 10, 07:18 PM posted to microsoft.public.outlook.program_vba
eckert1961
external usenet poster
 
Posts: 4
Default Pull Data From Non-Default Calendar

Thanks for the quick response Ken. That worked perfectly.
--
Regards,
Chris


"Ken Slovak - [MVP - Outlook]" wrote:

Set colCal =
objNS.GetDefaultFolder(olFolderCalendar).Folders.I tem("Instructor
Schedule").Items


--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"eckert1961" wrote in message
...
Hello,

I am running Outlook 2003 and I have a macro that pulls data from the
default calendar. I created a new calendar named "Instructor Schedule"
which
is a subfolder under Calendar. I would like to change the code so that the
data is pulled from the new calendar. Currently I am using the following
code.

Set colCal = objNS.GetDefaultFolder(olFolderCalendar).Items

What change would I need to implement to get my desired results? Thanks.

Regards,
Chris
--
Regards,
Chris


.

 




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
Moving outlook2003 data\calendar data from 1 xp laptop to another TomL Outlook - General Queries 8 July 24th 08 06:48 AM
How to I merge AutoArchived calendar data w/non-AutoArchive data? K.[_2_] Outlook - Calandaring 1 September 7th 07 06:18 AM
not able to pull up data in Outlook Calandar Booty Outlook - Calandaring 1 August 28th 07 07:49 PM
How to export data from personal calendar to default calendar npharrison Outlook - Calandaring 11 February 1st 06 04:31 PM
Calendar disappeared... data still there but doesn't default Ken Montgomery Outlook - Calandaring 1 January 17th 06 02:40 PM


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