Calendar View

T

tonyl

Hi,

Question on the day / week / month calendar view.

How does a outlook addin know the date range of the calendar view showing?
If day view, the view will show the range in time, how does the addin
know from when to when?
If week view, the view will show the range of a week, how does the addin
know which week that the view is showing?
If Month view, the view will show a month, but which month the view is
showing?

Regards,
Tony
 
S

Sue Mosher [MVP-Outlook]

The addin doesn't know. Outlook exposes no information about what dates are currently displayed in the calendar.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

Michael Bauer

Am Tue, 25 Apr 2006 14:07:38 -0400 schrieb Sue Mosher [MVP-Outlook]:

Tony, a workaround would be first to determine which view is the current
one. For that you can check which of the buttons has the
State=msoButtonDown.

Then create an Appointment and get its Start and End dates/times. In Day
View e.g. you will get the selected date and times, in Week View you´ll get
the selected day. By knowing that you can calculate the week´s Monday and
Sunday. It similar works for Month and Workweek View.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --

The addin doesn't know. Outlook exposes no information about what dates
are currently displayed in the calendar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top