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

Calendar's Current Item



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 25th 07, 10:44 PM posted to microsoft.public.outlook.program_vba
DENNIS BROWN
external usenet poster
 
Posts: 51
Default Calendar's Current Item

I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

--

Thanks,
Dennis
Ads
  #2  
Old March 26th 07, 01:17 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calendar's Current Item

I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.

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

"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

--

Thanks,
Dennis
  #3  
Old March 26th 07, 03:43 AM posted to microsoft.public.outlook.program_vba
DENNIS BROWN
external usenet poster
 
Posts: 51
Default Calendar's Current Item

Does it get the current calendar item at the current cursor position? I was told that it wasn't possible in 2003, and that I had to create an appointment to get the current time slot.
If the user has the Day View, and they arrow down to the 9:30 PM time slot, and I want to get the appointment item's properties for the appointment at that time slot, how would I do that?
I want to retrieve the properties, then save them into variables I will use in a 3rd party app--a adaptive screen reading program for the blind. I can access Outlook object model objects with this program, but I've never been able to get the time slot at the current cursor position.
So should
Application.ActiveExplorer.Selection.AppointmentIt em get me what I need?

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.

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

"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

--

Thanks,
Dennis
  #4  
Old March 26th 07, 01:27 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calendar's Current Item

Ah. You're talking about getting the currently selected time slot, not the current item, right? Outlook doesn't do that. The workaround is to use CommandBars to execute the New command and get the times from that item. See http://www.outlookcode.com/codedetail.aspx?id=616

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

"DENNIS BROWN" wrote in message news Does it get the current calendar item at the current cursor position? I was told that it wasn't possible in 2003, and that I had to create an appointment to get the current time slot.
If the user has the Day View, and they arrow down to the 9:30 PM time slot, and I want to get the appointment item's properties for the appointment at that time slot, how would I do that?
I want to retrieve the properties, then save them into variables I will use in a 3rd party app--a adaptive screen reading program for the blind. I can access Outlook object model objects with this program, but I've never been able to get the time slot at the current cursor position.
So should
Application.ActiveExplorer.Selection.AppointmentIt em get me what I need?

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.


"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

--

Thanks,
Dennis
  #5  
Old March 26th 07, 03:29 PM posted to microsoft.public.outlook.program_vba
DENNIS BROWN
external usenet poster
 
Posts: 51
Default Calendar's Current Item

Here is a partial from one of the Accessibility gurus at MS, but I don't have the contact, and I need to figure out what he is talking about. You got any ideas?
Begin quoted text:

"You mentioned that the calendar could use some Object Model (OM) improvements. As it happens, we've made a lot of improvements to the OM in Outlook 2007,
including in the Calendar. Have you had a chance to use Outlook 2007 Beta yet? (If not, let me know and we'll get you set up with our latest Beta build.)

Specifically, we've improved how Explorer.Selection works in the calendar in Outlook 2007. In Outlook 2003, Explorer.Selection didn't work very well on
recurring appointments or meetings - it always returned the entire recurring series. In Outlook 2007, Explorer.Selection returns the single instance that
is selected.

We hope this means that you'll always be able to use the Outlook OM to get information about the appointment that has focus. I'm not sure if this recurring-item
problem blocked you from using the calendar OM in Outlook 2003, but if it did, it should no longer be an issue.

A related improvement we made is that you can now use our Views OM to get the range of days that are currently visible in the Calendar. "

use our calendar OM more effectively now, but I'd like to know what you guys think.

End Quoted Text
Any code examples you might can figure out here would be greatly appreciated!

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Ah. You're talking about getting the currently selected time slot, not the current item, right? Outlook doesn't do that. The workaround is to use CommandBars to execute the New command and get the times from that item. See http://www.outlookcode.com/codedetail.aspx?id=616

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

"DENNIS BROWN" wrote in message news Does it get the current calendar item at the current cursor position? I was told that it wasn't possible in 2003, and that I had to create an appointment to get the current time slot.
If the user has the Day View, and they arrow down to the 9:30 PM time slot, and I want to get the appointment item's properties for the appointment at that time slot, how would I do that?
I want to retrieve the properties, then save them into variables I will use in a 3rd party app--a adaptive screen reading program for the blind. I can access Outlook object model objects with this program, but I've never been able to get the time slot at the current cursor position.
So should
Application.ActiveExplorer.Selection.AppointmentIt em get me what I need?

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.


"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

--

Thanks,
Dennis
  #6  
Old March 26th 07, 04:17 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calendar's Current Item

Just as I said before -- that's an answer to a different question. You are asking about the selected ***time interval***. The guru is talking about the selected ***appointment***.
--
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

"DENNIS BROWN" wrote in message ...
Here is a partial from one of the Accessibility gurus at MS, but I don't have the contact, and I need to figure out what he is talking about. You got any ideas?
Begin quoted text:

"You mentioned that the calendar could use some Object Model (OM) improvements. As it happens, we've made a lot of improvements to the OM in Outlook 2007,
including in the Calendar. Have you had a chance to use Outlook 2007 Beta yet? (If not, let me know and we'll get you set up with our latest Beta build.)

Specifically, we've improved how Explorer.Selection works in the calendar in Outlook 2007. In Outlook 2003, Explorer.Selection didn't work very well on
recurring appointments or meetings - it always returned the entire recurring series. In Outlook 2007, Explorer.Selection returns the single instance that
is selected.

We hope this means that you'll always be able to use the Outlook OM to get information about the appointment that has focus. I'm not sure if this recurring-item
problem blocked you from using the calendar OM in Outlook 2003, but if it did, it should no longer be an issue.

A related improvement we made is that you can now use our Views OM to get the range of days that are currently visible in the Calendar. "

use our calendar OM more effectively now, but I'd like to know what you guys think.

End Quoted Text
Any code examples you might can figure out here would be greatly appreciated!

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Ah. You're talking about getting the currently selected time slot, not the current item, right? Outlook doesn't do that. The workaround is to use CommandBars to execute the New command and get the times from that item. See http://www.outlookcode.com/codedetail.aspx?id=616


"DENNIS BROWN" wrote in message news Does it get the current calendar item at the current cursor position? I was told that it wasn't possible in 2003, and that I had to create an appointment to get the current time slot.
If the user has the Day View, and they arrow down to the 9:30 PM time slot, and I want to get the appointment item's properties for the appointment at that time slot, how would I do that?
I want to retrieve the properties, then save them into variables I will use in a 3rd party app--a adaptive screen reading program for the blind. I can access Outlook object model objects with this program, but I've never been able to get the time slot at the current cursor position.
So should
Application.ActiveExplorer.Selection.AppointmentIt em get me what I need?

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.


"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

  #7  
Old March 26th 07, 08:40 PM posted to microsoft.public.outlook.program_vba
DENNIS BROWN
external usenet poster
 
Posts: 51
Default Calendar's Current Item

But isn't the selected appointment the appointment at the current cursor position/time slot? If the user is at the 5:30 PM time slot within the Day View, and the text associated with that time slot is "Telephone conference on Document Model in room#4A.", isn't that the current appointment item?
I'm literally shooting in the dark here, since I'm a blind developer, but the way the calendar layout was described to me was that the first open calendar is to the left, and it has the time slots displayed, along with the appointment items associated with the specific time slots within that calendar.
Other calendars that are opened are tiled to the right of that one, and display only the appointment text for the calendar's owner.
So if I am in the 3rd calendar, and it is at the 5:30 PM time slot, and there is text associated with that time slot in my current calendar, then would the selection object give me the subject, times, and other properties associated with that current appointment item? Isn't that what the guru was saying? If not, then was he talking about the item from a list, such as the Active Appointments list?
Sorry for being so confused here, but trying to give our blind users access to a sighted-oriented display can be trying at times!
--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Just as I said before -- that's an answer to a different question. You are asking about the selected ***time interval***. The guru is talking about the selected ***appointment***.
--
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

"DENNIS BROWN" wrote in message ...
Here is a partial from one of the Accessibility gurus at MS, but I don't have the contact, and I need to figure out what he is talking about. You got any ideas?
Begin quoted text:

"You mentioned that the calendar could use some Object Model (OM) improvements. As it happens, we've made a lot of improvements to the OM in Outlook 2007,
including in the Calendar. Have you had a chance to use Outlook 2007 Beta yet? (If not, let me know and we'll get you set up with our latest Beta build.)

Specifically, we've improved how Explorer.Selection works in the calendar in Outlook 2007. In Outlook 2003, Explorer.Selection didn't work very well on
recurring appointments or meetings - it always returned the entire recurring series. In Outlook 2007, Explorer.Selection returns the single instance that
is selected.

We hope this means that you'll always be able to use the Outlook OM to get information about the appointment that has focus. I'm not sure if this recurring-item
problem blocked you from using the calendar OM in Outlook 2003, but if it did, it should no longer be an issue.

A related improvement we made is that you can now use our Views OM to get the range of days that are currently visible in the Calendar. "

use our calendar OM more effectively now, but I'd like to know what you guys think.

End Quoted Text
Any code examples you might can figure out here would be greatly appreciated!

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Ah. You're talking about getting the currently selected time slot, not the current item, right? Outlook doesn't do that. The workaround is to use CommandBars to execute the New command and get the times from that item. See http://www.outlookcode.com/codedetail.aspx?id=616


"DENNIS BROWN" wrote in message news Does it get the current calendar item at the current cursor position? I was told that it wasn't possible in 2003, and that I had to create an appointment to get the current time slot.
If the user has the Day View, and they arrow down to the 9:30 PM time slot, and I want to get the appointment item's properties for the appointment at that time slot, how would I do that?
I want to retrieve the properties, then save them into variables I will use in a 3rd party app--a adaptive screen reading program for the blind. I can access Outlook object model objects with this program, but I've never been able to get the time slot at the current cursor position.
So should
Application.ActiveExplorer.Selection.AppointmentIt em get me what I need?

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.


"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

  #8  
Old March 26th 07, 08:41 PM posted to microsoft.public.outlook.program_vba
DENNIS BROWN
external usenet poster
 
Posts: 51
Default Calendar's Current Item

The MSAA (Microsoft Active Accessibility) support in the calendar only gives the time slots (weekday, time, and date(s)), but not the subject of the appointments associated with that time slot, so I can retrieve the current time slot with MSAA, and save it as a variable, and pass it through to the Outlook object, and retrieve the properties associated with that item, but the syntax of such retrieving code escapes my comprehension!
If I know the current time slot is 5:30 PM, how would I pass that to the object model to retrieve the AppointmentItem.Subject from the passed time slot info?



--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Just as I said before -- that's an answer to a different question. You are asking about the selected ***time interval***. The guru is talking about the selected ***appointment***.
--
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

"DENNIS BROWN" wrote in message ...
Here is a partial from one of the Accessibility gurus at MS, but I don't have the contact, and I need to figure out what he is talking about. You got any ideas?
Begin quoted text:

"You mentioned that the calendar could use some Object Model (OM) improvements. As it happens, we've made a lot of improvements to the OM in Outlook 2007,
including in the Calendar. Have you had a chance to use Outlook 2007 Beta yet? (If not, let me know and we'll get you set up with our latest Beta build.)

Specifically, we've improved how Explorer.Selection works in the calendar in Outlook 2007. In Outlook 2003, Explorer.Selection didn't work very well on
recurring appointments or meetings - it always returned the entire recurring series. In Outlook 2007, Explorer.Selection returns the single instance that
is selected.

We hope this means that you'll always be able to use the Outlook OM to get information about the appointment that has focus. I'm not sure if this recurring-item
problem blocked you from using the calendar OM in Outlook 2003, but if it did, it should no longer be an issue.

A related improvement we made is that you can now use our Views OM to get the range of days that are currently visible in the Calendar. "

use our calendar OM more effectively now, but I'd like to know what you guys think.

End Quoted Text
Any code examples you might can figure out here would be greatly appreciated!

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Ah. You're talking about getting the currently selected time slot, not the current item, right? Outlook doesn't do that. The workaround is to use CommandBars to execute the New command and get the times from that item. See http://www.outlookcode.com/codedetail.aspx?id=616


"DENNIS BROWN" wrote in message news Does it get the current calendar item at the current cursor position? I was told that it wasn't possible in 2003, and that I had to create an appointment to get the current time slot.
If the user has the Day View, and they arrow down to the 9:30 PM time slot, and I want to get the appointment item's properties for the appointment at that time slot, how would I do that?
I want to retrieve the properties, then save them into variables I will use in a 3rd party app--a adaptive screen reading program for the blind. I can access Outlook object model objects with this program, but I've never been able to get the time slot at the current cursor position.
So should
Application.ActiveExplorer.Selection.AppointmentIt em get me what I need?

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.


"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

  #9  
Old March 26th 07, 10:17 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calendar's Current Item

In the calendar, the user can select either an existing item or a time slot. You need to be specific about which you are interested in. They are not the same thing. For example, a user could have two overlapping meetings in the same time slot (and then have to choose which to attend).

If the user selects an existing item, Application.ActiveExplorer.Selection(1) returns that item, as the Outlook dev guru correctly told you.

If the user selects a time slot, not an existing item, the only way to know what time slot is selected is to use the workaround that I suggested.

To put it another way, there is no text associated with a time slot. Text is associated with individual appointment items. Make sense?

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

"DENNIS BROWN" wrote in message ...
But isn't the selected appointment the appointment at the current cursor position/time slot? If the user is at the 5:30 PM time slot within the Day View, and the text associated with that time slot is "Telephone conference on Document Model in room#4A.", isn't that the current appointment item?
I'm literally shooting in the dark here, since I'm a blind developer, but the way the calendar layout was described to me was that the first open calendar is to the left, and it has the time slots displayed, along with the appointment items associated with the specific time slots within that calendar.
Other calendars that are opened are tiled to the right of that one, and display only the appointment text for the calendar's owner.
So if I am in the 3rd calendar, and it is at the 5:30 PM time slot, and there is text associated with that time slot in my current calendar, then would the selection object give me the subject, times, and other properties associated with that current appointment item? Isn't that what the guru was saying? If not, then was he talking about the item from a list, such as the Active Appointments list?
Sorry for being so confused here, but trying to give our blind users access to a sighted-oriented display can be trying at times!
--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Just as I said before -- that's an answer to a different question. You are asking about the selected ***time interval***. The guru is talking about the selected ***appointment***.

"DENNIS BROWN" wrote in message ...
Here is a partial from one of the Accessibility gurus at MS, but I don't have the contact, and I need to figure out what he is talking about. You got any ideas?
Begin quoted text:

"You mentioned that the calendar could use some Object Model (OM) improvements. As it happens, we've made a lot of improvements to the OM in Outlook 2007,
including in the Calendar. Have you had a chance to use Outlook 2007 Beta yet? (If not, let me know and we'll get you set up with our latest Beta build.)

Specifically, we've improved how Explorer.Selection works in the calendar in Outlook 2007. In Outlook 2003, Explorer.Selection didn't work very well on
recurring appointments or meetings - it always returned the entire recurring series. In Outlook 2007, Explorer.Selection returns the single instance that
is selected.

We hope this means that you'll always be able to use the Outlook OM to get information about the appointment that has focus. I'm not sure if this recurring-item
problem blocked you from using the calendar OM in Outlook 2003, but if it did, it should no longer be an issue.

A related improvement we made is that you can now use our Views OM to get the range of days that are currently visible in the Calendar. "

use our calendar OM more effectively now, but I'd like to know what you guys think.

End Quoted Text
Any code examples you might can figure out here would be greatly appreciated!

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
Ah. You're talking about getting the currently selected time slot, not the current item, right? Outlook doesn't do that. The workaround is to use CommandBars to execute the New command and get the times from that item. See http://www.outlookcode.com/codedetail.aspx?id=616


"DENNIS BROWN" wrote in message news Does it get the current calendar item at the current cursor position? I was told that it wasn't possible in 2003, and that I had to create an appointment to get the current time slot.
If the user has the Day View, and they arrow down to the 9:30 PM time slot, and I want to get the appointment item's properties for the appointment at that time slot, how would I do that?
I want to retrieve the properties, then save them into variables I will use in a 3rd party app--a adaptive screen reading program for the blind. I can access Outlook object model objects with this program, but I've never been able to get the time slot at the current cursor position.
So should
Application.ActiveExplorer.Selection.AppointmentIt em get me what I need?

--

Thanks,
Dennis
"Sue Mosher [MVP-Outlook]" wrote in message ...
I'm not sure what you're getting at here. Application.ActiveExplorer.Selection works in all versions of Outlook.


"DENNIS BROWN" wrote in message . ..
I heard that, unlike Outlook 10 or 11, 2007 allows you to retrieve the current item in Outlook Calendar with the Explorer.Selection object.
Any ideas on how to do this?
When the user is arrowing down the Day View, I want to retrieve the appointment item's properties for the current time slot. MS says this is now available in 2007, but I'm lost on what syntax to use here!
Any tips and code snippets would be greatly appreciated!

  #10  
Old March 26th 07, 11:18 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calendar's Current Item

See http://www.outlookcode.com/d/finddate.htm for examples of how to return Outlook items based on a date range.

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

"DENNIS BROWN" wrote in message . ..

Question: If I can get the time slot, then save it to a variable, how can I use it to retrieve any appointment items within that time slot (i.e. search the current day range for the AppointmentItem.Start that matches my variable?

 




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
Shared Calendar's and OWA gary Outlook - Calandaring 1 March 29th 07 08:36 PM
Calendar's Current Date [email protected] Outlook - Using Forms 0 September 28th 06 02:49 PM
'Run a script' to open Current Calendar item henry Outlook - Using Forms 1 July 19th 06 11:29 PM
How to find out which is the current item shown in the inspector? Michael Reukauff Add-ins for Outlook 1 January 25th 06 03:33 PM
Retrieve current item on TaskPad in Calender Michael Bauer Outlook and VBA 0 January 9th 06 09:04 AM


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