I've been searching for an answer but cannot find it. I have a macro which fires whenever an appointment is added to the calendar.
It scans the subject, location and body fields and looks for a number of strings in an array.
If it finds a match it adds an all day appointment to the calendar on the correct date, with the string as the subject.
My problem is I am using "olkView.GoToDate olkAppt.Start" to goto the correct date but if the user has the calendar set to Week view then the appointment is always created on the Monday.
How do I switch the calendar to Day view so when I then execute the goto date code and get the right day/date. I then need to switch the calendar back to the original view.
Thanks!
It scans the subject, location and body fields and looks for a number of strings in an array.
If it finds a match it adds an all day appointment to the calendar on the correct date, with the string as the subject.
My problem is I am using "olkView.GoToDate olkAppt.Start" to goto the correct date but if the user has the calendar set to Week view then the appointment is always created on the Monday.
How do I switch the calendar to Day view so when I then execute the goto date code and get the right day/date. I then need to switch the calendar back to the original view.
Thanks!