+ Reply to Thread
Results 1 to 8 of 8

Excel macro that auto creates Outlook appointments based on data of particular cell range

  1. #1
    Registered User
    Join Date
    08-06-2022
    Location
    Melbourne
    MS-Off Ver
    Office 365
    Posts
    3

    Excel macro that auto creates Outlook appointments based on data of particular cell range

    Hi all,

    firstly I am a novice so please let me know if you dont understand or I have the incorrect terminology.

    I am attempting to create a VBA macro where by when a date is entered within a certain cell range it automatically creates an appointment in Outlook starting on the date entered as an all day event and where data such as appointment title and subject are drawn from other cells in the same worksheet.

    For example. Say I format column C as date cells, id like the macro to run when a date is entered in any cell within the C column and create an appointment with the title taken from B2 & A1 and then other appointment data like subject, location etc can be the same across all appointments.



    Perhaps explaining the reason why I want to create such a macro might help too. I am an Urban Planner that works within Government and when I receive a planning application to assess I have 28 calendar days from the lodgement date to request any further information from the applicant. So I wanted to create a macro that would automatically create an appointment in Outlook for that date to remind myself. I do have other macros id like to create that are similar but baby steps haha

    If you would like any further info id be happy to provide. I have attached an example below

    Thanks test.xlsx
    Last edited by w1ntrmutes; 08-07-2022 at 12:22 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Excel macro that auto creates Outlook appointments based on data of particular cell ra

    since you have office 365 check out power automate, there are several tutorials on youtube

    take a look at this also:

    https://www.excelforum.com/excel-pro...xcel-data.html
    Last edited by k1dr0ck; 08-08-2022 at 03:09 AM.

  3. #3
    Registered User
    Join Date
    08-06-2022
    Location
    Melbourne
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Excel macro that auto creates Outlook appointments based on data of particular cell ra

    Thanks for the advice. I managed to find this code, which I will need to rewrite to set it from an active row to when a certain cell has information added to it (like a date)

    Please Login or Register  to view this content.
    Any advice how to rewrite that?

  4. #4
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Excel macro that auto creates Outlook appointments based on data of particular cell ra

    try below but you need to specify where the start, end, subject etc. are located

    Please Login or Register  to view this content.
    Last edited by k1dr0ck; 08-29-2022 at 02:56 AM.

  5. #5
    Registered User
    Join Date
    08-06-2022
    Location
    Melbourne
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Excel macro that auto creates Outlook appointments based on data of particular cell ra

    Thanks for this, works well. Just had a couple of follow up questions. With the calendar properties, what code would I use to have default options rather than using a cell? Mainly around the reminder set minutes. At the moment I enter 2080 into a cell so its 2 days reminder, but what code can I put to always default to 2 days prior? Also there seems to be an issue where if I enter text in the column which is within the .start parameter, it seems to stop the code from working at all. Is there code that will tell the macro to ignore any text in a cell and just react to cells which have dates entered?

    Thanks again

  6. #6
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: Excel macro that auto creates Outlook appointments based on data of particular cell ra

    This is the only thing you need

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Excel macro that auto creates Outlook appointments based on data of particular cell ra

    @jec

    shouldnt it be inside a worksheet change event since it should trigger when a date is entered in column C?

  8. #8
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: Excel macro that auto creates Outlook appointments based on data of particular cell ra

    Yes that is also possible. This was just an example of how the code setup could be.

+ 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] Deleting Outlook Appointments from Excel Macro
    By MallorcaPete in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2015, 07:26 PM
  2. Replies: 2
    Last Post: 02-05-2015, 08:49 PM
  3. Booking Appointments in Outlook with VBA from Data in Excel.
    By Ortz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2014, 07:17 PM
  4. Excel Macro/VBA to create multiple outlook appointments with required attendees
    By bradliggett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2013, 03:10 PM
  5. [SOLVED] [solved] Outlook appointments based on a range of Excel data
    By JMN1984 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 10:55 AM
  6. [SOLVED] Excel Macro/VBA to Automate Outlook Calendar Appointments
    By LitParalegal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2012, 04:20 PM
  7. Excel macro to create appointments in outlook calandar
    By John Pateman-Gee in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-19-2012, 12:00 PM

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