Solved

Using VBA to Schedule appointments on a public calendar

Posted on 2009-07-06
8
374 Views
Last Modified: 2013-11-28
I have developed an application that is used within our department and have received a request for some additional functionality. The users have a shared calendar on our server that they manually update to schedule workflow tasks. Ideally this could be done automatically. For example, when a shipment date is confirmed, the arrival preparation, arrival date, and follow-up actions would all be scehduled on the public calendar. Is this possible?
0
Comment
Question by:NashVegas
  • 4
  • 4
8 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24787793
"Anything is possible"

The question is how difficult it is to do.

Since you did not post any details on your mysterious "application", it is difficult to say.

Basically you could have a shipment date field in a query.
When this field is populated, the other fields get populated/calculated based on that date. (ShipDate+3, ShipDate-5, ...ect)

So basically you would trigger some code to fire when a new shipment date is entered, it will then create new calendar entries for the other calculated dates.

The difficulty here would be in somehow making the code adapt for changes and/or deletions of the shipment date.

What is your "Specific" question regarding this system?

JeffCoachman
0
 

Author Comment

by:NashVegas
ID: 24787957
Hi Jeff,
Thanks for the response. My question was whether it is possible to update calendar events programmatically on a shared Outlook calendar as opposed to the user's personal Outlook calendar. I apologize if I did not make that clear. I didn't see any point in going into specifics if it turned out not to be possibile. But since you have answered that quesiton (I think) then here are specifics:

ArrivalDate: field on form that when updated triggers code that schedules 3 calendar events:
Event 1: Arrival Date - 2 days;  Subject = "Task 1"
Event 2: Arrival Date + 14 days; Subject = "Task 2"
Event 3: Arrival Date + 56 days; Subject = "Task 3"

Location of calendar (fictitious) "https://email.institution.edu/public/Med%Center/Receiving/?Cmd=contents"
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24791358
Here is the basic query:

Access-EEQ24546736UpdateCalendar.mdb
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:NashVegas
ID: 24793723
Thanks, but I already knew how to add and subtract days from a date. I was asking how to schedule appointments programmatically on a shared Outlook calendar. I don't need a query at all. I need VBA code that calls the Outlook calendar and adds the appointments. Something similar to this:

http://support.microsoft.com/kb/220595

...only it needs to schedule the appointments on the shared calendar rather than the individual user's main Outlook calendar as would occur using the code referenced in the article above.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24796567
OK,

Sorry, I mis-understood.
0
 

Author Comment

by:NashVegas
ID: 24796648
No worries, Jeff. Can anyone help me with this?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24796971
No, again, I thought you needed help with the query.

Click the Request Attention button and ask that this Q be placed in the Exchange Zone
0
 

Accepted Solution

by:
NashVegas earned 0 total points
ID: 24841011
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question