+ Reply to Thread
Results 1 to 2 of 2

Creating Outlook appointments using Excel and VBA

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    3

    Creating Outlook appointments using Excel and VBA

    Hi all,

    I’ve been working on VBA stuff for a while now learning from tutorials and examples but I think I’ve bitten off more than I can chew with my current project. I’m helping optimise work-flow for an employer as a self-imposed test of my abilities and although my current code works it’s far from perfect.

    The idea behind it is to use Excel to automatically schedule events using pre-selected data and dropdown boxes (this bit is complete and functioning), then create an Outlook appointment for each event, and send an email inviting people specified in set cells to the appointment.

    My current code for the Outlook segment is below; it creates a loop then creates an appointment in the creator’s personal Outlook calendar which is changed to a meeting, then invites two people – an administrative shared account, and the person specified in a cell to the meeting.

    Please Login or Register  to view this content.
    There are a number of issues with this:
    • First and foremost it creates the appointment in the person running the macro’s personal calendar. I would really prefer it to be set in the admin shared calendar instead. Code I tried for placing the appointment there directly (included below) wouldn’t seem to let me send emails inviting others to attend the appointment and didn’t seem to show the appointment in their personal calendars though did show them in the ‘attending’ panel for the appointment in the shared calendar.
    • When creating appointments the loop requests permission to send emails on every iteration. The alternative code I tried only required you to give permission once (giving permission for up to ten minutes). I would much prefer this.
    • Least important, but desirable: The process is currently performed manually with appointments being set by hand then added to the admin account’s shared Outlook calendar and inviting the specified individual for each appointment. As it’s a task that happens every week and the appointments are for the same purpose (the calendar records a number of different types of appointment which are colour coordinated by purpose) a custom label is used that highlights the appointment in a certain colour. It would be nice if this code can also automatically set that.

    This is the alternative code I tried in case it helps anyone (it was written first, and I know it would need a little modification to make it loop-friendly):

    Please Login or Register  to view this content.
    Thanks in advance for any help or pointers.

  2. #2
    Registered User
    Join Date
    01-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Creating Outlook appointments using Excel and VBA

    I've made some progress today and the following (based on my original code) is now closer to what I want. I found the inclusion of .send makes a huge difference! The meetings are now made in the shared Outlook calendar and it *does* send invites out. Now it's just a case of optimising and refining a little.

    Please Login or Register  to view this content.
    Things I still need help with:
    • Right now it asks once (per user-selected period of one to ten minutes) for permission to create appointments, but asks individually for every invite for permission to send the invite out. I'd like to minimise this/automate the 'yes' process.
    • We're currently using Excel 2003 and Outlook 2003 but plan to upgrade to 2010 by April this year. I've come to understand that 2003 doesn't include functionality to set labels - can anyone suggest an alternative for use until we upgrade?
    • The code currently finds the shared inbox using contact name (and thus email address) - is it possible for it to do this via a known email address instead of going through a Outlook contact system?


    Thanks in advance.
    Last edited by Jaque-Thay; 01-21-2014 at 12:52 PM. Reason: Forgot to include a point

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Dates from Excel to Outlook appointments
    By finfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2013, 04:46 AM
  2. Excel VBA and Outlook appointments
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2011, 12:00 PM
  3. Creating Outlook appointments from Excel
    By BrakZak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2007, 11:35 AM
  4. appointments in Outlook from Excel
    By each in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2007, 08:11 AM
  5. [SOLVED] Appointments from Excel into Outlook Calendar
    By Sh0t2bts in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2006, 11:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1