+ Reply to Thread
Results 1 to 14 of 14

Holiday program - export to ms outlook

  1. #1
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    205

    Holiday program - export to ms outlook

    i have this holiday program (this is linked to networked excel spreadsheets in the origianl) and what i want to do is create a macro that will create an appointment in microsoft outlook calendar for each date everytime i select the cells and click the button with the persons name in the subject. is this possible ?
    Attached Files Attached Files
    Last edited by jsmity; 10-12-2008 at 02:33 PM.

  2. #2
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    205
    is it possible to create an appointment in outlook in excel ?

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    See if this helps

    http://www.*****-clicks.com/excel/olTask.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

  5. #5
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    205
    hi thanks for the reply but this website doesnt work ?

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    There seems to be something altering the link, serch Google for www.dicksclicks.com

  8. #8
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    205
    thanks,

    ok i've wriiten this code and assinged it to a command button but its highlighting this (olAppointmentItem) as a compile error , cant find project or library ??????

    I'm using office 2003.

    Please Login or Register  to view this content.

  9. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello jsmity,

    The GetObject function will only attach to a running instance of Outlook. It Outlook isn't running it will error.

    I have been working on your workbook. I have added a cell right click menu option to run the macro. This is easier than putting buttons on all the worksheets. Just right click on a cell in column "A" or "B" between rows 20 and 50 and then click "Add Outlook Appointment".

    A big problem is with the dates. If the dates are not standardized then you are going to have problems with the appointments. Basically, Outlook only accepts standard date formats. The macro can been altered to handle some custom formats, but sticking with standard dates is better all the way around.

    Add Apointment
    Please Login or Register  to view this content.
    Add and Remove Right Click Menu Item
    Please Login or Register  to view this content.
    This Workbook Events
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    205
    by standard dates what do you mean ?
    the date is in the format "Wed 31/Dec/08" which is ddd dd/mm/yy


    it highlights this part of the code as an error
    Please Login or Register  to view this content.

  11. #11
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello jsmity,

    The date format which you have shown is a custom date format. Outlook will only convert (on its own) date formats that are listed in the Date Type list. I attempted to deal with some of the custom formats, but there is no standardization among the sheets. That why I suggested using only the dates format setup by Windows.

    Sincerely, Leith Ross

  12. #12
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    205
    Thanks , yes i changed all the date formats to one of the standard ones on all the sheets but its still wont work. i tried different date formats ? I've attached the sheet that i edited the date formats can you point in the direction i'm going wrong ?
    Attached Files Attached Files

  13. #13
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello jsmity,

    I revised the macro to accept the date format you have. However, Outlook will still display the dates in the system short date format. For example, if the date is 26-Mar-2008 on the the worksheet, Outlook will enter the appointment date as Wed 3/28/2008. Here is the macro code. This ahs already been changed in the attached workbook.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    205
    just the job working just how i wanted........... thanks

+ 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. Outlook to Excel Export
    By Brokovich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2010, 05:38 PM
  2. Outlook export to excel for reformatting telephone numbers
    By ugzruben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2008, 05:38 PM
  3. Exporting one column to text file
    By Brelin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-21-2008, 12:29 AM
  4. Check if contact excists in outlook and export to outlook
    By bodylojohn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2007, 03:45 PM
  5. VBA Macro to export to Outlook
    By bwa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2007, 03:12 AM

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