+ Reply to Thread
Results 1 to 6 of 6

Managing Outlook calendar items with Excel

  1. #1
    Forum Contributor
    Join Date
    03-30-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    141

    Lightbulb Managing Outlook calendar items with Excel

    Hi everybody!

    I've got a macro that downloads my work roster from the web to excel.

    Now i want to create a macro that:

    - Updates exsisting appointments to match current data from Excel (or delete if they dont exsist in Excel anymore)
    Update if one of following values doesnt match: Start Date, Start Time, End Date, End Time, Subject
    Delete if appointment in outlook doesnt occur in Excel sheet between "FirstDayPrevMonth" and "LastDayNextMonth"
    FirstDayPrevMonth and LastDayNextMonth variables are set allready

    - Create new appointment if appointment doesnt exist

    All the appointments will go in the same callendar named:
    WorkRoster

    Here is my workbook: Calendar.xlsm

    The sheet "Import" contains appointments to be set.

    The sheet "Make Appointments" is how i would like to have my sheet.
    Calendar name: WorkRoster
    Subject: Always the same value (strSubject?)
    Location: Always the same value (strLocation?)
    Body: Worksheet("Import") Column("E")
    Category: (do i need this?)
    Start Date: Worksheet("Import") Column("B")
    Start Time: Worksheet("Import") Column("C")
    End Date: Worksheet("Import") Column("D")
    End Time: Calculate with formula =if(Start Time > End Time ; Start Date + 1 ; Start Date)
    Reminder: Always the same value (strReminder, 24hrs before)

    Any input is greatly appriciated !
    Last edited by 323428; 10-27-2017 at 02:03 PM.

  2. #2
    Forum Contributor
    Join Date
    03-30-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    141

    Re: Managing Outlook calendar items with Excel

    How to addapt the following code to work with worksheet "Make Appointments"

    Naamloos.png

    This will check allready added items and create new by calling a sub as down below if it doesnt excist


    Please Login or Register  to view this content.
    Last edited by 323428; 10-27-2017 at 02:01 PM.

  3. #3
    Forum Contributor
    Join Date
    03-30-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    141

    Re: Managing Outlook calendar items with Excel

    Today i found this code and i think it might work! Ill test when im back home

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-30-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    141

    Re: Managing Outlook calendar items with Excel

    it only adds the first appointment of the sheet....

    what did i do wrong? this is the code i used.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-30-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    141

    Re: Managing Outlook calendar items with Excel

    This code adds all appointments as listed in excel.
    How do i add them to a certain callendar called "Name" instead of the regular callendar?
    How do i make the code check for allready excisting appointments? or changed appointments? and skip appointments listed which didnt change?

    this is the code that adds appointments and its working currently!
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-30-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    141

    Re: Managing Outlook calendar items with Excel

    I got it working!, the solution (a bit messy because copy / paste) as shown below.
    It checks if appointment doesnt excist, if not it creates it.

    Now i just need to figure out how to check appointments that excists but are not up to date with current excel data.
    If you have suggestions ill be pleased!



    Please Login or Register  to view this content.

+ 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. Interactive Calendar for managing deadlines
    By V.Cell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2016, 07:58 AM
  2. tracks/managing outlook inbox
    By baluraipur in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2015, 06:40 AM
  3. Creating and managing appointments in Outlook from VBA
    By jmac1947 in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2014, 11:15 PM
  4. Gather data on items in a shared calendar on Outlook 2003
    By gk77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 09:16 AM
  5. Managing Items on Multiple Lists
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2010, 06:34 AM
  6. Managing Filtered Items
    By Dastard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2006, 11:35 AM
  7. [SOLVED] import calendar items from excel into outlook calendar
    By jsewaiseh in forum Excel General
    Replies: 0
    Last Post: 09-02-2005, 11:05 AM

Tags for this Thread

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