Solved

Add appointment to another users' calendar. Via VBA.

Posted on 2007-03-19
4
2,046 Views
Last Modified: 2013-11-27
I'm working on a little project at the moment that is going to be rolled out to our Sales Executives over the next couple of weeks. It's going automate their booking of appointments etc onto Outlook and will also provide reminders etc for them. We'll also be using it here to generate letters to prospective clients etc based on what the sales execs are doing.

I'm stuck on one particular bit of the system, in that I want to be able to add appointments into other peoples' calendars automatically. I can add them directly into my own, however what may happen is that our Sales team will be phoning clients and booking appointments on behalf of the Sales Execs, so I need some way to send information - ideally I want to add it directly in there and not send a meeting request.  The person booking the appointment will select the name of the sales exec from a dropdown.  I can provide a link to the db if required.

We're on an Exchange 2003 server and I am the network administrator so have pretty much control over everything... just wondered if there was some way I could send stuff to other peoples calendars via delegation?

Incidentally the person / people logging appointments will have delegation priviledges.

Thanks in advance,

Ad
0
Comment
Question by:adaytay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 2

Author Comment

by:adaytay
ID: 18754609
Increased point count.  Any takers anyone?  Do you need any more info?

Many thanks,

Ad
0
 
LVL 39

Accepted Solution

by:
stevbe earned 500 total points
ID: 18755474
a bunch of guessing ... no actual experience ...

If the person running the code is a delegate then you *should* be able to create an appt object and then Copy it to their folder, or maybe if you create a folder object and set that to be their Calendar when you create the appt object it will be correctly added to their calendar.

<select the name of the sales exec from a dropdown> Are you going to provide FreeBusy status so they don't get double booked?



0
 
LVL 2

Author Comment

by:adaytay
ID: 18755810
Hi Stevbe,

I've been doing a bunch of research on this and found this: http://www.outlookcode.com/codedetail.aspx?id=43 - it seems to do the job.  I need to tweak it to get it to use my existing code as I currently check to see when the first available timeslot in the persons' calendar is, and it will put the appointment into there.  I can refine the code I think further still so that it looks to see if the appointment entered is already present to avoid the doublebooking as you suggested.

Other than that I think I'm pretty much sorted.  Once I found the method (as per the link above) it's falling into place quite well, but thank you for your comments :)

Ad

0
 
LVL 2

Author Comment

by:adaytay
ID: 18755890
Update:  am awarding you the points anyway mate as you pointed out something that I didn't think about at first.  Thanks :)
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

617 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