PC Review


Reply
Thread Tools Rate Thread

How to close a calendar

 
 
sven preuske
Guest
Posts: n/a
 
      11th Jul 2005
Hi there!

with much help of this forum i got the following macro running:


Public Sub SchalteKalender()
Set objnameSpace = Application.GetNamespace("MAPI")
Set objRoomA = objnameSpace.CreateRecipient("Foreign Name")
objRoomA.Resolve
Set objRoomACalendar =
objnameSpace.GetSharedDefaultFolder(objRoomA, olFolderCalendar)
Set Application.ActiveExplorer.CurrentFolder = objRoomACalendar
Set objRoomATasks = Nothing
Set objRoomACalendar = Nothing
Set objRoomA = Nothing
End Sub

It opens a foreign calender and shows it. now my problem is: i dont
want to see my own calender/tasks. how can i just sho a specific
calender and its tasks and leave all other at that moment showed ones
out?

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Jul 2005
Is this Outlook 2003? Do you mean that you want to show only the other's users calendar without displaying it side-by-side with your own calendar?

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


"sven preuske" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi there!
>
> with much help of this forum i got the following macro running:
>
>
> Public Sub SchalteKalender()
> Set objnameSpace = Application.GetNamespace("MAPI")
> Set objRoomA = objnameSpace.CreateRecipient("Foreign Name")
> objRoomA.Resolve
> Set objRoomACalendar =
> objnameSpace.GetSharedDefaultFolder(objRoomA, olFolderCalendar)
> Set Application.ActiveExplorer.CurrentFolder = objRoomACalendar
> Set objRoomATasks = Nothing
> Set objRoomACalendar = Nothing
> Set objRoomA = Nothing
> End Sub
>
> It opens a foreign calender and shows it. now my problem is: i dont
> want to see my own calender/tasks. how can i just sho a specific
> calender and its tasks and leave all other at that moment showed ones
> out?
>

 
Reply With Quote
 
sven preuske
Guest
Posts: n/a
 
      11th Jul 2005
Yes.. i think i found a way by using DeselectFolder .. now ive got
another problem: my script only works, when running in the
calender-view. is there a simple way to switch from tasks or contacts
to calender-view?

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Jul 2005
I don't know what you mean. If you set ActiveExplorer.CurrentFolder to a calendar folder, it will show that folder. If that's not working, show a code snippet that illustrates the problem.

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


"sven preuske" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Yes.. i think i found a way by using DeselectFolder .. now ive got
> another problem: my script only works, when running in the
> calender-view. is there a simple way to switch from tasks or contacts
> to calender-view?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does my shared calendar close when I print it? Using Outlook Arlene Microsoft Outlook Calendar 0 10th Dec 2008 12:11 AM
Outlook2003 Calendar will not Save and Close a New Appointment =?Utf-8?B?Y21hcnRpbg==?= Microsoft Outlook Calendar 5 12th Apr 2006 09:39 PM
Add close window to page containing outlook calendar =?Utf-8?B?U2FyYUM=?= Microsoft Frontpage 2 18th Feb 2005 05:31 PM
Close another user's calendar? Marty Microsoft Outlook 1 31st Jan 2005 06:32 PM
Calendar Query please - I'm so close Kirt Microsoft Access Queries 0 26th Aug 2003 11:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 PM.