+ Reply to Thread
Results 1 to 4 of 4

Excel VBA calendar planner

Hybrid View

  1. #1
    Registered User
    Join Date
    11-10-2021
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    2

    Excel VBA calendar planner

    I have a macro that is not behaving as expected, it runs and does what i have asked it to do however i have encountered an unexpected issue.
    what i wanted to do was have the invites sent from a shared mailbox which it does, however the meetings now appear in my main calendar as well - it is over 300 appointments so it has made my own calendar a bit of a mess

    Code attached



    can anyone tell me what i have done wrong with this one?
    Attached Files Attached Files
    Last edited by steviethebookie; 11-11-2021 at 03:46 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Excel VBA calendar planner

    Hi, welcome to the forum.
    I'm not the moderator but you should read the forum rules on how to post code and more
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    11-10-2021
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    2
    Quote Originally Posted by Keebellah View Post
    Hi, welcome to the forum.
    I'm not the moderator but you should read the forum rules on how to post code and more
    Thanks - ill edit now

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Excel VBA calendar planner

    You didn't get the point THIS is what you should do
    Sub CreateEmailfromExcel()
    Dim OutApp As Outlook.Application, outmeet As Outlook.AppointmentItem
    Dim I As Long, Setupsht As Worksheet
    Set Setupsht = Worksheets("setup")
    For I = 2 To Range("a" & Rows.Count).End(xlUp).Row
    Set OutApp = Outlook.Application
    Set outmeet = OutApp.CreateItem(olAppointmentItem)
    With outmeet
    .SendUsingAccount = OutApp.Session.Accounts.Item(1)
    .Subject = "hunt line"
    .RequiredAttendees = Setupsht.Range("F" & I).Value
    .Start = Setupsht.Range("D" & I).Value
    .End = Setupsht.Range("E" & I).Value
    .Importance = olImportanceHigh
    .Body = " hunt line shift"
    .MeetingStatus = olMeeting
    .Send
    
    
    End With
    Next
    Set OutApp = Nothing
    Set outmeet = Nothing
    End Sub

+ 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. Creating a cover calendar/project planner
    By Fayecattini in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-03-2021, 10:25 AM
  2. Calendar Planner (Diary)
    By markusvirus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2015, 07:11 PM
  3. [SOLVED] Calendar/Leave planner and calculator
    By mingebag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2012, 03:46 AM
  4. Holiday planner date pop up calendar formatting problem
    By reggie1000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2012, 01:33 PM
  5. Excel Planner+ Calendar connected - Formula too long - don't want repeat on same date
    By RegularOfficeGuy101 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2012, 12:25 PM
  6. Event planner, calendar, pop-ups
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2011, 05:14 AM
  7. Replies: 0
    Last Post: 03-02-2006, 12:30 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