Consulting

Results 1 to 3 of 3

Thread: Macro to pull calendar appointments from outlook into excel

  1. #1
    VBAX Newbie
    Joined
    Jun 2014
    Posts
    1
    Location

    Macro to pull calendar appointments from outlook into excel

    Title says it all. I'm trying to streamline my morning reporting. I have a few different excel files and reports I run for our start up. I am trying to combine everything I run into one page. I have most of the reports pulled in now I just have to pull the data from my calendar and I can be down to one all in one page. I have googled as much as I can most the macros I find are for older versions of excel. Does anyone have a clue where I could start with this kind of task.

    Thanks

  2. #2

  3. #3
    most the macros I find are for older versions of excel.
    why would this affect the coding for automating outlook?
    try like
    Set olapp = CreateObject("outlook.Application")
    Set calf = olapp.GetNamespace("mapi").GetDefaultFolder(olFolderCalendar)
    For Each calit In calf.Items
        'do stuff here to put calit into excel, or not as required
    Next

Posting Permissions

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