+ Reply to Thread
Results 1 to 10 of 10

Create appointments in Non Default Calendar

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    UK
    MS-Off Ver
    Excel 2007 - 20010
    Posts
    6

    Question Create appointments in Non Default Calendar

    Hi everyone,

    My first post so please excuse any foux pas!

    I am trying to create a macro that creates an appointment in an Outlook calendar that isn't the default. Everything I've tried so fare either stops the macro working entirely (but doesn't give any errors) or just continues sending the appointments to the default calendar.

    The appointments need to go to a calendar called "Key Dates" the path for which is \\Personal Folder\Calendar

    I'm creating this using Outlook/Excel 2010 but need it to work for 2007 as well.

    Would appreciate any help you can give me on this.

    The Macro as of now:

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    10-13-2010
    Location
    UK
    MS-Off Ver
    Excel 2007 - 20010
    Posts
    6

    Re: Create appointments in Non Default Calendar

    I've made changes to the macro but this causes it to do nothing at all and it gives no errors either. ???

    Please Login or Register  to view this content.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Create appointments in Non Default Calendar

    Hi nobox

    I was researching something else and ran across this thread. Have you resolved the issue? If not, I may be able to help.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    10-13-2010
    Location
    UK
    MS-Off Ver
    Excel 2007 - 20010
    Posts
    6

    Re: Create appointments in Non Default Calendar

    Hi John,

    I still don't have this resoled and would really appreciate any help you can offer!

    Adam

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Create appointments in Non Default Calendar

    It's not clear whether the path is:
    Personal Folder\Calendar\Key Dates
    or
    Personal Folder\Key Dates

    in the first case you should use:
    Please Login or Register  to view this content.
    in the second:
    Please Login or Register  to view this content.
    And it's advisable to avoid contradictory instructions:
    Please Login or Register  to view this content.
    Last edited by snb; 12-06-2010 at 09:32 AM.



  6. #6
    Registered User
    Join Date
    10-13-2010
    Location
    UK
    MS-Off Ver
    Excel 2007 - 20010
    Posts
    6

    Re: Create appointments in Non Default Calendar

    Thanks snb,

    I've got the the appointment going to the right calendar now with the code below:

    Please Login or Register  to view this content.

    But I can't get this to work with a check to see if the appointment already exists?

    When I was adding the appointment to my default calendar the check worked fine but now I've changed the folder path the macro stops working altogether?

    Please Login or Register  to view this content.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Create appointments in Non Default Calendar

    Hi nobox

    Try this
    Please Login or Register  to view this content.
    John

  8. #8
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Create appointments in Non Default Calendar

    I didn't get the impression that you read my code.

    Never use session in VBA.(that would really be a faux pas.)
    Last edited by snb; 12-06-2010 at 12:17 PM.

  9. #9
    Registered User
    Join Date
    10-13-2010
    Location
    UK
    MS-Off Ver
    Excel 2007 - 20010
    Posts
    6

    Re: Create appointments in Non Default Calendar

    John, thank you very much that works perfectly!

    @snb that's how I remember being told to do it a school, bad teacher perhaps. Apologies if you felt I was ignoring your help, wasn't the case at all.

  10. #10
    Registered User
    Join Date
    05-16-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    10

    Re: Create appointments in Non Default Calendar

    Hey Guys,
    I am sorry I don't know if this thread is closed or not but I am new to this forum. I used that code but unfortunately excel keeps saying that there is something wrong with this line
    Please Login or Register  to view this content.
    . It keeps saying error. As you can see in the picture Attachment 395540. I really need this code to not repeat the appointment. However, the calendar and everything works when I remove it but it keep repeating the appointments. I don't want it to do that

    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)

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